mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-28 10:46:15 +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:
parent
5ef036a578
commit
bd38438416
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user