mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-02 17:56:15 +01:00
- fix build result listing for arch
This commit is contained in:
parent
3a2317889c
commit
ab28b8f492
11
osc/build.py
11
osc/build.py
@ -257,13 +257,22 @@ def get_built_files(pacdir, pactype):
|
|||||||
b_built = subprocess.Popen(['find', os.path.join(pacdir, 'KIWI'),
|
b_built = subprocess.Popen(['find', os.path.join(pacdir, 'KIWI'),
|
||||||
'-type', 'f'],
|
'-type', 'f'],
|
||||||
stdout=subprocess.PIPE).stdout.read().strip()
|
stdout=subprocess.PIPE).stdout.read().strip()
|
||||||
else:
|
elif pactype == 'deb':
|
||||||
b_built = subprocess.Popen(['find', os.path.join(pacdir, 'DEBS'),
|
b_built = subprocess.Popen(['find', os.path.join(pacdir, 'DEBS'),
|
||||||
'-name', '*.deb'],
|
'-name', '*.deb'],
|
||||||
stdout=subprocess.PIPE).stdout.read().strip()
|
stdout=subprocess.PIPE).stdout.read().strip()
|
||||||
s_built = subprocess.Popen(['find', os.path.join(pacdir, 'SOURCES.DEB'),
|
s_built = subprocess.Popen(['find', os.path.join(pacdir, 'SOURCES.DEB'),
|
||||||
'-type', 'f'],
|
'-type', 'f'],
|
||||||
stdout=subprocess.PIPE).stdout.read().strip()
|
stdout=subprocess.PIPE).stdout.read().strip()
|
||||||
|
elif pactype == 'arch':
|
||||||
|
b_built = subprocess.Popen(['find', os.path.join(pacdir, 'ARCHPKGS'),
|
||||||
|
'-name', '*.pkg.tar*'],
|
||||||
|
stdout=subprocess.PIPE).stdout.read().strip()
|
||||||
|
s_built = []
|
||||||
|
else:
|
||||||
|
print >>sys.stderr, 'WARNING: Unknown package type \'%s\'.' % (pactype)
|
||||||
|
b_built = []
|
||||||
|
s_built = []
|
||||||
return s_built, b_built
|
return s_built, b_built
|
||||||
|
|
||||||
def get_repo(path):
|
def get_repo(path):
|
||||||
|
Loading…
Reference in New Issue
Block a user