Skip to content

Commit

Permalink
- parse_repoarchdescr: there's no need to use os.path.basename
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-h committed Oct 19, 2012
1 parent cd29a30 commit a82a1d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc/commandline.py
Expand Up @@ -4919,7 +4919,7 @@ def parse_repoarchdescr(self, args, noinit = False, alternative_project = None,
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, [])
Expand Down

0 comments on commit a82a1d7

Please sign in to comment.