Skip to content

Commit

Permalink
- fix build result listing for arch
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Aug 13, 2012
1 parent 3a23178 commit ab28b8f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion osc/build.py
Expand Up @@ -257,13 +257,22 @@ def get_built_files(pacdir, pactype):
b_built = subprocess.Popen(['find', os.path.join(pacdir, 'KIWI'),
'-type', 'f'],
stdout=subprocess.PIPE).stdout.read().strip()
else:
elif pactype == 'deb':
b_built = subprocess.Popen(['find', os.path.join(pacdir, 'DEBS'),
'-name', '*.deb'],
stdout=subprocess.PIPE).stdout.read().strip()
s_built = subprocess.Popen(['find', os.path.join(pacdir, 'SOURCES.DEB'),
'-type', 'f'],
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

def get_repo(path):
Expand Down

0 comments on commit ab28b8f

Please sign in to comment.