1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-25 19:52:12 +01:00

don't use a hardcoded path for the rpm binary otherwise it fails on distributions like debian

This commit is contained in:
Marcus Hüwe 2008-12-19 15:06:36 +00:00
parent 8ae5597788
commit ba3c4ac09d

View File

@ -146,7 +146,7 @@ def verify_pacs(pac_list):
saved_LC_ALL = os.environ.get('LC_ALL')
os.environ['LC_ALL'] = 'en_EN'
o = subprocess.Popen(['/bin/rpm', '-K'] + pac_list, stdout=subprocess.PIPE,
o = subprocess.Popen(['rpm', '-K'] + pac_list, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, close_fds=True).stdout
# restore locale