1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-12 23:56:13 +01:00

fix checkout of a package, which contains uploaded, but not commited

files. We use the latest committed version in that case.
This commit is contained in:
Adrian Schröter 2009-10-16 08:26:01 +00:00
parent 5ef036a578
commit bd38438416

View File

@ -1644,8 +1644,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
apiurl = Project(localdir).apiurl
rev, dummy = parseRevisionOption(opts.revision)
if rev==None:
rev="latest"
if rev and not checkRevision(project, package, rev):
if rev and rev != "latest" and not checkRevision(project, package, rev):
print >>sys.stderr, 'Revision \'%s\' does not exist' % rev
sys.exit(1)