1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-08 13:56:15 +01:00

Merge pull request #1622 from dmach/localpackage_buildinfo_buildconfig_location

Fix storing _buildinfo and _buildconfig files in .osc rather than among the source files
This commit is contained in:
Daniel Mach 2024-09-09 11:32:33 +02:00 committed by GitHub
commit 0302053f41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -925,7 +925,7 @@ def main(apiurl, store, opts, argv):
bc_file = None
bi_filename = '_buildinfo-%s-%s.xml' % (repo, arch)
bc_filename = '_buildconfig-%s-%s' % (repo, arch)
if not opts.local_package and store.is_package and os.access(core.store, os.W_OK):
if store.is_package and os.access(core.store, os.W_OK):
bi_filename = os.path.join(os.getcwd(), core.store, bi_filename)
bc_filename = os.path.join(os.getcwd(), core.store, bc_filename)
elif not os.access('.', os.W_OK):