From: "Sebastian Pipping" <sping@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/overlint:master commit in: overlint/
Date: Fri, 6 Apr 2012 22:26:22 +0000 (UTC) [thread overview]
Message-ID: <1333751127.5b8354a9ae9db7700663e4ea4c987628fbfc5255.sping@gentoo> (raw)
commit: 5b8354a9ae9db7700663e4ea4c987628fbfc5255
Author: Sebastian Pipping <sebastian <AT> pipping <DOT> org>
AuthorDate: Fri Apr 6 22:24:48 2012 +0000
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Fri Apr 6 22:25:27 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/overlint.git;a=commit;h=5b8354a9
No longer count CVS metadata or copyright years as changes
---
overlint/cli.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/overlint/cli.py b/overlint/cli.py
index 10a3ef7..a0720b2 100644
--- a/overlint/cli.py
+++ b/overlint/cli.py
@@ -3,7 +3,7 @@
from __future__ import print_function
-VERSION_STR = '0.2'
+VERSION_STR = '0.3'
import sys
import os
@@ -80,7 +80,10 @@ def find_ebuild_changes(category_package, overlay_path, gentoo_versions, overlay
category, package = category_package.split('/')
for version in intersection:
ebuild_name = '%s-%s.ebuild' % (package, version)
- command = "bash -c 'cmp --quiet <(fgrep -v KEYWORDS= /usr/portage/%s/%s) <(fgrep -v KEYWORDS= %s/%s/%s) ; exit $?'" % (category_package, ebuild_name, overlay_path, category_package, ebuild_name)
+ 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) ; """ \
+ """exit $?'""" \
+ % (category_package, ebuild_name, overlay_path, category_package, ebuild_name)
ret = os.system(command)
if not ret:
continue
next reply other threads:[~2012-04-06 22:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-06 22:26 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-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-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=1333751127.5b8354a9ae9db7700663e4ea4c987628fbfc5255.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