From: "Sebastian Pipping" <sping@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/overlint:master commit in: overlint/
Date: Fri, 18 May 2012 23:15:50 +0000 (UTC) [thread overview]
Message-ID: <1337382626.119bc8d9d4c7e21462bbfddbf081c2d2e6275003.sping@gentoo> (raw)
commit: 119bc8d9d4c7e21462bbfddbf081c2d2e6275003
Author: XU Benda <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Fri May 18 23:10:26 2012 +0000
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Fri May 18 23:10:26 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/overlint.git;a=commit;h=119bc8d9
Use PORTDIR
---
overlint/cli.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/overlint/cli.py b/overlint/cli.py
index 7ad967d..6c91a59 100644
--- a/overlint/cli.py
+++ b/overlint/cli.py
@@ -20,6 +20,7 @@ except ImportError:
_revision_matcher = re.compile('-r([0-9]+)$')
+portdir = portage.settings["PORTDIR"]
def find_atoms(repository_path, category_package):
versions = list()
@@ -99,9 +100,9 @@ def find_ebuild_changes(category_package, overlay_path, gentoo_versions, overlay
for version in intersection:
ebuild_name = '%s-%s.ebuild' % (package, version)
command = """bash -c 'FILTER() { sed -e "/# $Header/d" -e "/# Copyright/d" -e "/KEYWORDS=/d" "$@"; }; """ \
- """cmp --quiet <(FILTER /usr/portage/%s/%s) <(FILTER %s/%s/%s) ; """ \
+ """cmp --quiet <(FILTER %s/%s/%s) <(FILTER %s/%s/%s) ; """ \
"""exit $?'""" \
- % (category_package, ebuild_name, overlay_path, category_package, ebuild_name)
+ % (portdir, category_package, ebuild_name, overlay_path, category_package, ebuild_name)
ret = os.system(command)
if not ret:
continue
@@ -168,13 +169,13 @@ def main(args):
category_package = full_path_overlay[len(conf.overlay_path + '/'):]
if len(category_package.split('/')) != 2:
continue
- full_path_gentoo = os.path.join('/usr/portage/', category_package)
+ full_path_gentoo = os.path.join(portdir, category_package)
found = os.path.exists(full_path_gentoo)
if not found:
continue
overlay_versions = find_atoms(conf.overlay_path, category_package)
- gentoo_versions = find_atoms('/usr/portage/', category_package)
+ gentoo_versions = find_atoms(portdir, category_package)
(missed_revision_bumps, missed_version_bumps) = find_missed_bumps(gentoo_versions, overlay_versions)
lagging_behind_gentoo = find_lagging_behind_gentoo(gentoo_versions, overlay_versions)
ebuild_changes = find_ebuild_changes(category_package, conf.overlay_path, gentoo_versions, overlay_versions)
next reply other threads:[~2012-05-18 23:16 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-18 23:15 Sebastian Pipping [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-10-25 23:16 [gentoo-commits] proj/overlint:master commit in: overlint/ Sebastian Pipping
2012-06-16 12:28 Sebastian Pipping
2012-06-16 12:28 Sebastian Pipping
2012-05-18 23:15 Sebastian Pipping
2012-04-08 19:04 Sebastian Pipping
2012-04-08 19:04 Sebastian Pipping
2012-04-08 6:06 Sebastian Pipping
2012-04-08 6:06 Sebastian Pipping
2012-04-08 6:06 Sebastian Pipping
2012-04-06 22:35 Sebastian Pipping
2012-04-06 22:26 Sebastian Pipping
2012-04-03 21:53 Sebastian Pipping
2012-04-03 21:53 Sebastian Pipping
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=1337382626.119bc8d9d4c7e21462bbfddbf081c2d2e6275003.sping@gentoo \
--to=sping@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