euscan: really skip all dev versions
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
parent
277fb4ebe6
commit
739358cf7c
@ -76,12 +76,12 @@ def scan_upstream(query):
|
|||||||
matches = sorted(matches)
|
matches = sorted(matches)
|
||||||
pkg = matches.pop()
|
pkg = matches.pop()
|
||||||
|
|
||||||
if '9999' in pkg.version:
|
while '9999' in pkg.version and len(matches):
|
||||||
if len(matches) == 0:
|
pkg = matches.pop()
|
||||||
sys.stderr.write(pp.warn("Package '%s' only have a dev version (9999)" % pp.pkgquery(pkg.cp)))
|
|
||||||
return []
|
if not pkg:
|
||||||
else:
|
sys.stderr.write(pp.warn("Package '%s' only have a dev version (9999)" % pp.pkgquery(pkg.cp)))
|
||||||
pkg = matches.pop()
|
return []
|
||||||
|
|
||||||
if pkg.cp in BLACKLIST_PACKAGES:
|
if pkg.cp in BLACKLIST_PACKAGES:
|
||||||
sys.stderr.write(pp.warn("Package '%s' is blacklisted" % pp.pkgquery(pkg.cp)))
|
sys.stderr.write(pp.warn("Package '%s' is blacklisted" % pp.pkgquery(pkg.cp)))
|
||||||
|
Loading…
Reference in New Issue
Block a user