mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-22 21:16:16 +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
|
||||
if len(args) < 3:
|
||||
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
|
||||
else:
|
||||
if (arg in osc.build.can_also_build.get(osc.build.hostarch, [])
|
||||
|
Loading…
Reference in New Issue
Block a user