public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Brian Dolbec" <dolsen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/imlate/
Date: Wed, 22 Mar 2017 12:51:43 +0000 (UTC)	[thread overview]
Message-ID: <1490186999.4b4345c108361c5728e2e20a69f47421113fbddc.dolsen@gentoo> (raw)

commit:     4b4345c108361c5728e2e20a69f47421113fbddc
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 22 12:31:20 2017 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Wed Mar 22 12:49:59 2017 +0000
URL:        https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=4b4345c1

imlate.py: Whitespace cleanup

 pym/gentoolkit/imlate/imlate.py | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/pym/gentoolkit/imlate/imlate.py b/pym/gentoolkit/imlate/imlate.py
index f38949f..86d1a7e 100755
--- a/pym/gentoolkit/imlate/imlate.py
+++ b/pym/gentoolkit/imlate/imlate.py
@@ -189,7 +189,7 @@ def is_herd(herd, metadata):
 					return True
 				if hd.startswith(hd2):
 					return True
-	
+
 	return False
 
 
@@ -224,7 +224,7 @@ def get_packages( conf ):
 			if not slot in slots:
 				slots[slot] = []
 			slots[slot].append(cpvr)
-		
+
 		for slot in sorted(slots):
 			cpvr = portage.versions.best( slots[slot] )
 
@@ -265,25 +265,25 @@ def get_imlate( conf, pkgs ):
 				our_ver = ""
 				mtime = 0
 				slot = 0
-	
+
 				# 0 = none(default), 1 = testing(~arch), 2 = stable(arch),
 				# 3 = exclude(-arch), 4 = exclude_all(-*)
 				# -* would be overridden by ~arch or arch
 				kwd_type = 0
 
 				cpvr = "%s/%s-%s" % ( cat, pkg, vr )
-	
+
 				# absolute ebuild path for mtime check
 				abs_pkg = join( conf["PORTDIR"], cat, pkg, basename( cpvr ) )
 				abs_pkg = "%s.ebuild" % str( abs_pkg )
-	
+
 				kwds = conf["portdb"].dbapi.aux_get( cpvr, ["KEYWORDS"] )[0]
-	
+
 				# FIXME: %s is bad.. maybe even cast it, else there are issues because its unicode
 				slot = ":%s" % conf["portdb"].dbapi.aux_get( cpvr, ["SLOT"] )[0]
 				if slot == ":0":
 					slot = ""
-	
+
 				# sorted() to keep the right order
 				# e.g. -* first, -arch second, arch third and ~arch fourth
 				# -* -foo ~arch
@@ -300,7 +300,7 @@ def get_imlate( conf, pkgs ):
 					elif kwd == testing:
 						kwd_type = 1
 						break
-	
+
 				# ignore -arch and already stabilized packages
 				if kwd_type == 3 or kwd_type == 2:
 					continue
@@ -314,7 +314,7 @@ def get_imlate( conf, pkgs ):
 					mtime = int( ( time() - stat( abs_pkg ).st_mtime ) / 60 / 60 / 24 )
 					if mtime < conf["MTIME"]:
 						continue
-	
+
 				# look for an existing stable version
 				our = portage.versions.best( conf["portdb"].dbapi.match( "%s/%s%s" % ( cat, pkg, slot ) ) )
 				if our:
@@ -324,12 +324,12 @@ def get_imlate( conf, pkgs ):
 						our_ver = "%s-%s" % ( our_ver, _foo[2] )
 				else:
 					our_ver = ""
-	
+
 				# we just need the version if > our_ver
 				if our_ver:
 					if portage.versions.vercmp( our_ver, vr ) >= 0:
 						continue
-	
+
 				if kwd_type == 1 and conf["STABLE"]:
 					imlate = _add_ent( imlate, cat, ("%s%s" % (pkg, slot)), vr, our_ver )
 					conf["STABLE_SUM"] += 1


             reply	other threads:[~2017-03-22 12:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-22 12:51 Brian Dolbec [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-01-03  4:31 [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/imlate/ Matt Turner
2022-03-16 19:02 Matt Turner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1490186999.4b4345c108361c5728e2e20a69f47421113fbddc.dolsen@gentoo \
    --to=dolsen@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox