1
0
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:
Marcus Huewe 2012-10-19 13:41:44 +02:00
parent cd29a30aa1
commit a82a1d7fa3

View File

@ -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, [])