mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-08 20:15:47 +01:00
- parse_repoarchdescr: there's no need to use os.path.basename
This commit is contained in:
parent
cd29a30aa1
commit
a82a1d7fa3
@ -4919,7 +4919,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
arg_arch = arg_repository = arg_descr = None
|
arg_arch = arg_repository = arg_descr = None
|
||||||
if len(args) < 3:
|
if len(args) < 3:
|
||||||
for arg in args:
|
for arg in args:
|
||||||
if arg.endswith('.spec') or arg.endswith('.dsc') or arg.endswith('.kiwi') or os.path.basename(arg) == 'PKGBUILD':
|
if arg.endswith('.spec') or arg.endswith('.dsc') or arg.endswith('.kiwi') or arg == 'PKGBUILD':
|
||||||
arg_descr = arg
|
arg_descr = arg
|
||||||
else:
|
else:
|
||||||
if (arg in osc.build.can_also_build.get(osc.build.hostarch, [])
|
if (arg in osc.build.can_also_build.get(osc.build.hostarch, [])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user