summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-08-02 14:00:18 -0700
committerJesse Keating <jkeating@redhat.com>2010-08-02 15:25:07 -0700
commit6d5c91d3bdae3fe73d26289bf79875b732229535 (patch)
tree5c477b4ee8f1f53624b249e9b267e79984cd0f9d
parent129f695b499380725fcbcd5fbe4b64cc33bc39e0 (diff)
downloadfedora-packager-6d5c91d3bdae3fe73d26289bf79875b732229535.tar.gz
fedora-packager-6d5c91d3bdae3fe73d26289bf79875b732229535.tar.xz
fedora-packager-6d5c91d3bdae3fe73d26289bf79875b732229535.zip
Don't clog the first line of a changelog
It's redundant.
-rw-r--r--src/pyfedpkg/__init__.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py
index bd2a96d..cc8dd80 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -877,10 +877,6 @@ class PackageModule:
# Then remove any lines that start with $ or %, and then replace
# %% with %
- # This should probably change behavior from dist-cvs and not print
- # the first line with the date/name/version as git has that info
- # already and it would be redundant.
-
cloglines = []
spec = open(os.path.join(self.path, self.spec), 'r').readlines()
for line in spec:
@@ -893,6 +889,9 @@ class PackageModule:
continue
if line2.startswith('%'):
continue
+ if line2.startswith('*'):
+ # skip the email n/v/r line. Redundant
+ continue
cloglines.append(line2.replace('%%', '%'))
# Now open the clog file and write out the lines
clogfile = open(os.path.join(self.path, 'clog'), 'w')