From a82a1d7fa301b397a8b66a19267d93443e91be5d Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Fri, 19 Oct 2012 13:41:44 +0200 Subject: [PATCH] - parse_repoarchdescr: there's no need to use os.path.basename --- osc/commandline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 8accf6f9..93480cff 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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, [])