Skip to content

Commit 8988ec0

Browse files
dmachmcepl
authored andcommitted
Extend _buildinfo file lookup to the current directory
Fixes 'osc lbl' for git based packages.
1 parent 7c4a6ae commit 8988ec0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

osc/commandline.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6811,7 +6811,9 @@ def _find_last_repo_arch(self, repo=None, fatal=True):
68116811
from .core import ET
68126812
from .core import store
68136813

6814-
files = glob.glob(os.path.join(Path.cwd(), store, "_buildinfo-*"))
6814+
files = \
6815+
glob.glob(os.path.join(Path.cwd(), store, "_buildinfo-*")) + \
6816+
glob.glob(os.path.join(Path.cwd(), "_buildinfo-*"))
68156817
if repo is not None:
68166818
files = [f for f in files
68176819
if os.path.basename(f).replace('_buildinfo-', '').startswith(repo + '-')]

0 commit comments

Comments
 (0)