There is no 'en_EN' locale, so osc build fails with
The following package could not be verified:
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_EN)
Firthermore, it is not a good idea to treat any warning message as
error, so do not fail of there is something different than the expected
rpm -K output.
Signed-off-by: Michal Marek
---
osc/fetch.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/osc/fetch.py b/osc/fetch.py
index 2e39833..c565bfb 100644
--- a/osc/fetch.py
+++ b/osc/fetch.py
@@ -268,7 +268,7 @@ def verify_pacs_old(pac_list):
# save locale first (we rely on English rpm output here)
saved_LC_ALL = os.environ.get('LC_ALL')
- os.environ['LC_ALL'] = 'en_EN'
+ os.environ['LC_ALL'] = 'C'
o = subprocess.Popen(['rpm', '-K'] + pac_list, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, close_fds=True).stdout
@@ -280,10 +280,7 @@ def verify_pacs_old(pac_list):
for line in o.readlines():
if not 'OK' in line:
- print
- print >>sys.stderr, 'The following package could not be verified:'
print >>sys.stderr, line
- sys.exit(1)
if 'NOT OK' in line:
print
--
1.7.3.4
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-buildservice+help@opensuse.org