mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-24 23:28:53 +02:00
don't use a hardcoded path for the rpm binary otherwise it fails on distributions like debian
This commit is contained in:
@@ -146,7 +146,7 @@ def verify_pacs(pac_list):
|
|||||||
saved_LC_ALL = os.environ.get('LC_ALL')
|
saved_LC_ALL = os.environ.get('LC_ALL')
|
||||||
os.environ['LC_ALL'] = 'en_EN'
|
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
|
stderr=subprocess.STDOUT, close_fds=True).stdout
|
||||||
|
|
||||||
# restore locale
|
# restore locale
|
||||||
|
Reference in New Issue
Block a user