From 6d5c91d3bdae3fe73d26289bf79875b732229535 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Mon, 2 Aug 2010 14:00:18 -0700 Subject: Don't clog the first line of a changelog It's redundant. --- src/pyfedpkg/__init__.py | 7 +++---- 1 file 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') -- cgit