diff options
author | Jesse Keating <jkeating@redhat.com> | 2010-08-02 14:00:18 -0700 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2010-08-02 15:25:07 -0700 |
commit | 6d5c91d3bdae3fe73d26289bf79875b732229535 (patch) | |
tree | 5c477b4ee8f1f53624b249e9b267e79984cd0f9d /src | |
parent | 129f695b499380725fcbcd5fbe4b64cc33bc39e0 (diff) | |
download | fedora-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/pyfedpkg/__init__.py | 7 |
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') |