mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-11 16:36:14 +01:00
- do_localbuild: made "arch" argument optional
This commit is contained in:
parent
c31d7d5671
commit
9e6e76c712
@ -4736,7 +4736,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
"""${cmd_name}: Shows the build log of a local buildchroot
|
||||
|
||||
usage:
|
||||
osc lbl [REPOSITORY ARCH]
|
||||
osc lbl [REPOSITORY [ARCH]]
|
||||
osc lbl # show log of newest last local build
|
||||
|
||||
${cmd_option_list}
|
||||
@ -4746,10 +4746,13 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
print >>sys.stderr, 'Not implemented for VMs'
|
||||
sys.exit(1)
|
||||
|
||||
if len(args) == 0:
|
||||
if len(args) == 0 or len(args) == 1:
|
||||
package = store_read_package('.')
|
||||
import glob
|
||||
files = glob.glob(os.path.join(os.getcwd(), store, "_buildinfo-*"))
|
||||
if args:
|
||||
files = [f for f in files
|
||||
if os.path.basename(f).replace('_buildinfo-', '').startswith(args[0] + '-')]
|
||||
if not files:
|
||||
self.print_repos()
|
||||
cfg = files[0]
|
||||
|
Loading…
Reference in New Issue
Block a user