diff options
author | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-11-14 20:29:55 +0000 |
---|---|---|
committer | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-11-14 20:29:55 +0000 |
commit | a927524c43d391579a17b3630606f350f44acf3c (patch) | |
tree | 0835cf63a31078d2ad6b983531df2c72316e746f /RepSys/log.py | |
parent | bbcb7441232303601ccce9a413e104c450477bef (diff) | |
download | mgarepo-a927524c43d391579a17b3630606f350f44acf3c.tar mgarepo-a927524c43d391579a17b3630606f350f44acf3c.tar.gz mgarepo-a927524c43d391579a17b3630606f350f44acf3c.tar.bz2 mgarepo-a927524c43d391579a17b3630606f350f44acf3c.tar.xz mgarepo-a927524c43d391579a17b3630606f350f44acf3c.zip |
Really fixed generation of unreleased commits
It was using the previous markrelease revision as reference. The recent
broken fix was using "releasesdata[0]" instead of "releasesdata[-1]" which
is the newest release revision.
Diffstat (limited to 'RepSys/log.py')
-rw-r--r-- | RepSys/log.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/RepSys/log.py b/RepSys/log.py index b476618..730c674 100644 --- a/RepSys/log.py +++ b/RepSys/log.py @@ -425,11 +425,11 @@ def svn2rpm(pkgdirurl, rev=None, size=None, submit=False, releases.append(release) prevrevision = relrevision - # look for commits that have been not submited (released) yet - # this is done by getting all log entries newer (revision larger) - # than releaseslog[0] (in the case it exists) - if releaseslog: - latest_revision = releaseslog[0].revision + # look for commits that have been not submitted (released) yet + # this is done by getting all log entries newer (greater revision no.) + # than releasesdata[-1] (in the case it exists) + if releasesdata: + latest_revision = releasesdata[-1][0] # the latest copied rev else: latest_revision = 0 notsubmitted = [entry for entry in currentlog |