aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-09-21 15:50:43 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-09-21 15:50:43 +0000
commite5ac8131f63ee32d79c2d4e8232cd8d047add24c (patch)
tree102c7d3300c3e7e6fd9f9324c5c7f0aa7081e319 /RepSys
parent128df479745085bc1fbb2d0d8842d2e632c55bb1 (diff)
downloadmgarepo-e5ac8131f63ee32d79c2d4e8232cd8d047add24c.tar
mgarepo-e5ac8131f63ee32d79c2d4e8232cd8d047add24c.tar.gz
mgarepo-e5ac8131f63ee32d79c2d4e8232cd8d047add24c.tar.bz2
mgarepo-e5ac8131f63ee32d79c2d4e8232cd8d047add24c.tar.xz
mgarepo-e5ac8131f63ee32d79c2d4e8232cd8d047add24c.zip
Fix: unreleased commits are not those newer than the last markrelease
Entries considered unreleased must be those newer than the latest released revision in current/. Problem pointed out by mrl.
Diffstat (limited to 'RepSys')
-rw-r--r--RepSys/log.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/RepSys/log.py b/RepSys/log.py
index b5bf212..009e4e0 100644
--- a/RepSys/log.py
+++ b/RepSys/log.py
@@ -413,11 +413,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[0] (in the case it exists)
+ if releasesdata:
+ latest_revision = releasesdata[0][0] # "relrevision"
else:
latest_revision = 0
notsubmitted = [entry for entry in currentlog