[Debian-l10n-commits] r1936 - /pootle/trunk/debian/patches/packaging_install_outside_rootdir.patch

nekral-guest at users.alioth.debian.org nekral-guest at users.alioth.debian.org
Fri Sep 11 22:46:49 UTC 2009


Author: nekral-guest
Date: Fri Sep 11 22:46:49 2009
New Revision: 1936

URL: http://svn.debian.org/wsvn/?sc=1&rev=1936
Log:
    + packaging_install_outside_rootdir.patch: When installing in a temporary
      root directory to prepare a package, the paths in localsettings.py are
      invalid. (--prefix should be checked.

Added:
    pootle/trunk/debian/patches/packaging_install_outside_rootdir.patch

Added: pootle/trunk/debian/patches/packaging_install_outside_rootdir.patch
URL: http://svn.debian.org/wsvn/pootle/trunk/debian/patches/packaging_install_outside_rootdir.patch?rev=1936&op=file
==============================================================================
--- pootle/trunk/debian/patches/packaging_install_outside_rootdir.patch (added)
+++ pootle/trunk/debian/patches/packaging_install_outside_rootdir.patch Fri Sep 11 22:46:49 2009
@@ -1,0 +1,14 @@
+--- a/setup.py
++++ b/setup.py
+@@ -184,8 +184,9 @@
+             # used with os.path.join() as above. This also means that data_dir
+             # should be changed here if the value # of INSTALL_DATA_DIR becomes
+             # an absolute path.
+-            conf_dir = util.change_root(self.root, INSTALL_CONFIG_DIR)
+-            work_dir = util.change_root(self.root, INSTALL_WORKING_DIR)
++            conf_dir = util.change_root("/", INSTALL_CONFIG_DIR)
++            data_dir = util.change_root("/usr", INSTALL_DATA_DIR)
++            work_dir = util.change_root("/", INSTALL_WORKING_DIR)
+ 
+         # Replace directory variables in settings.py to reflect the current installation
+         lines = open(install_dirs_py_path).readlines()




More information about the Debian-l10n-commits mailing list