mirror of
https://github.com/openSUSE/osc.git
synced 2026-02-21 19:25:28 +01:00
Merge pull request #1834 from dmach/_buildinfo-lookup
Extend _buildinfo file lookup to the current directory
This commit is contained in:
@@ -6811,7 +6811,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
from .core import ET
|
||||
from .core import store
|
||||
|
||||
files = glob.glob(os.path.join(Path.cwd(), store, "_buildinfo-*"))
|
||||
files = \
|
||||
glob.glob(os.path.join(Path.cwd(), store, "_buildinfo-*")) + \
|
||||
glob.glob(os.path.join(Path.cwd(), "_buildinfo-*"))
|
||||
if repo is not None:
|
||||
files = [f for f in files
|
||||
if os.path.basename(f).replace('_buildinfo-', '').startswith(repo + '-')]
|
||||
|
||||
Reference in New Issue
Block a user