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

fix display of built rpms in build.py (when did that broke??)

thereby fixing osc build --keep-pkgs
This commit is contained in:
Dr. Peter Poeml 2008-01-22 23:49:31 +00:00
parent f8b5963c7a
commit 646be729e7

View File

@ -169,12 +169,12 @@ class Pac:
def get_built_files(pacdir, pactype):
if pactype == 'rpm':
b_built = os.popen('find %s -name *.rpm' \
b_built = os.popen('find %s -name \*.rpm' \
% os.path.join(pacdir, 'RPMS')).read().strip()
s_built = os.popen('find %s -name *.rpm' \
s_built = os.popen('find %s -name \*.rpm' \
% os.path.join(pacdir, 'SRPMS')).read().strip()
else:
b_built = os.popen('find %s -name *.deb' \
b_built = os.popen('find %s -name \*.deb' \
% os.path.join(pacdir, 'DEBS')).read().strip()
s_built = None
return s_built, b_built