aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2006-10-20 22:04:08 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2006-10-20 22:04:08 +0000
commit19b75603da4fb275fee76ae9eb765ab6ba16f463 (patch)
treeaeb29c2d5216a9009acad14c5375e9019cb64f77 /RepSys
parent47253e1456e038e9d155655f767cf05b608f69d6 (diff)
downloadmgarepo-19b75603da4fb275fee76ae9eb765ab6ba16f463.tar
mgarepo-19b75603da4fb275fee76ae9eb765ab6ba16f463.tar.gz
mgarepo-19b75603da4fb275fee76ae9eb765ab6ba16f463.tar.bz2
mgarepo-19b75603da4fb275fee76ae9eb765ab6ba16f463.tar.xz
mgarepo-19b75603da4fb275fee76ae9eb765ab6ba16f463.zip
- fixed regression from the bug of package without releases/
Diffstat (limited to 'RepSys')
-rw-r--r--RepSys/log.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/RepSys/log.py b/RepSys/log.py
index 2f058fc..62a290d 100644
--- a/RepSys/log.py
+++ b/RepSys/log.py
@@ -309,14 +309,15 @@ def svn2rpm(pkgdirurl, rev=None, size=None, submit=False, template=None):
# sort releases by copyfrom-revision, so that markreleases for same
# revisions won't be look empty
releasesdata = []
- for relentry in releaseslog[::-1]:
- try:
- (version, release, relrevision) = \
- parse_markrelease_log(relentry)
- except InvalidEntryError:
- continue
- releasesdata.append((relrevision, -relentry.revision, relentry, version, release))
- releasesdata.sort()
+ if releaseslog:
+ for relentry in releaseslog[::-1]:
+ try:
+ (version, release, relrevision) = \
+ parse_markrelease_log(relentry)
+ except InvalidEntryError:
+ continue
+ releasesdata.append((relrevision, -relentry.revision, relentry, version, release))
+ releasesdata.sort()
# collect valid releases using the versions provided by the changes and
# the packages