mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-01 04:36:13 +01:00
Merge branch 'get_built_files-deb' of https://github.com/dmach/osc
Correctly print the built packages in case of a debbuild.
This commit is contained in:
commit
686175d072
10
osc/build.py
10
osc/build.py
@ -353,6 +353,16 @@ def get_preinstall_image(apiurl, arch, cache_dir, img_info, offline=False):
|
|||||||
|
|
||||||
def get_built_files(pacdir, buildtype):
|
def get_built_files(pacdir, buildtype):
|
||||||
if buildtype == 'spec':
|
if buildtype == 'spec':
|
||||||
|
debs_dir = os.path.join(pacdir, 'DEBS')
|
||||||
|
sdebs_dir = os.path.join(pacdir, 'SDEBS')
|
||||||
|
if os.path.isdir(debs_dir) or os.path.isdir(sdebs_dir):
|
||||||
|
# (S)DEBS directories detected, list their *.(s)deb files
|
||||||
|
b_built = subprocess.Popen(['find', debs_dir, '-name', '*.deb'],
|
||||||
|
stdout=subprocess.PIPE).stdout.read().strip()
|
||||||
|
s_built = subprocess.Popen(['find', sdebs_dir, '-name', '*.sdeb'],
|
||||||
|
stdout=subprocess.PIPE).stdout.read().strip()
|
||||||
|
else:
|
||||||
|
# default: (S)RPMS directories and their *.rpm files
|
||||||
b_built = subprocess.Popen(['find', os.path.join(pacdir, 'RPMS'),
|
b_built = subprocess.Popen(['find', os.path.join(pacdir, 'RPMS'),
|
||||||
'-name', '*.rpm'],
|
'-name', '*.rpm'],
|
||||||
stdout=subprocess.PIPE).stdout.read().strip()
|
stdout=subprocess.PIPE).stdout.read().strip()
|
||||||
|
Loading…
Reference in New Issue
Block a user