summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitsutoshi NAKANO <bkbin005@rinku.zaq.ne.jp>2014-06-18 22:41:00 +0900
committerMitsutoshi NAKANO <bkbin005@rinku.zaq.ne.jp>2014-06-18 22:41:00 +0900
commit1528436e236ecbcc4ed97daa5eebedeed43aa8f7 (patch)
treeb0f6c76d1431f7ad82f72e48945f8ed73d4c18f0
parent75e0b89aa98af91cc97893b0c441394582bdf909 (diff)
Fix ypper-etckeeper.py change permission and locale
Changed zypper-etckeeper.py 's permission from 644 to 755 . Changed zypper-etckeeper.py's LANG to C . modified: Makefile modified: zypper-etckeeper.py
-rw-r--r--Makefile2
-rwxr-xr-xzypper-etckeeper.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 13ce4fe..cf034a2 100644
--- a/Makefile
+++ b/Makefile
@@ -45,7 +45,7 @@ ifeq ($(HIGHLEVEL_PACKAGE_MANAGER),yum)
endif
ifeq ($(HIGHLEVEL_PACKAGE_MANAGER),zypper)
mkdir -p $(DESTDIR)$(prefix)/lib/zypp/plugins/commit
- $(INSTALL_DATA) zypper-etckeeper.py $(DESTDIR)$(prefix)/lib/zypp/plugins/commit/zypper-etckeeper.py
+ $(INSTALL) zypper-etckeeper.py $(DESTDIR)$(prefix)/lib/zypp/plugins/commit/zypper-etckeeper.py
endif
-./etckeeper-bzr/__init__.py install --root=$(DESTDIR) ${PYTHON_INSTALL_OPTS} || echo "** bzr support not installed"
echo "** installation successful"
diff --git a/zypper-etckeeper.py b/zypper-etckeeper.py
index b21f23d..daa2ff2 100755
--- a/zypper-etckeeper.py
+++ b/zypper-etckeeper.py
@@ -3,7 +3,7 @@
import errno
import subprocess
import zypp_plugin
-
+import os
def _call_etckeeper(install_arg):
# zypper interprets the plugin's stdout as described in
@@ -34,5 +34,6 @@ class EtckeeperPlugin(zypp_plugin.Plugin):
self.ack()
+os.environ["LANG"] = "C"
plugin = EtckeeperPlugin()
plugin.main()