diff options
author | Bogdano Arendartchuk <bogdano@mandriva.org> | 2006-10-20 22:04:08 +0000 |
---|---|---|
committer | Bogdano Arendartchuk <bogdano@mandriva.org> | 2006-10-20 22:04:08 +0000 |
commit | 19b75603da4fb275fee76ae9eb765ab6ba16f463 (patch) | |
tree | aeb29c2d5216a9009acad14c5375e9019cb64f77 /RepSys | |
parent | 47253e1456e038e9d155655f767cf05b608f69d6 (diff) | |
download | mgarepo-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.py | 17 |
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 |