summaryrefslogtreecommitdiff
path: root/debian/patches/0035-Shortcut-distros.dat-finding-to-point-to-where-it-is.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0035-Shortcut-distros.dat-finding-to-point-to-where-it-is.patch')
-rw-r--r--debian/patches/0035-Shortcut-distros.dat-finding-to-point-to-where-it-is.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/debian/patches/0035-Shortcut-distros.dat-finding-to-point-to-where-it-is.patch b/debian/patches/0035-Shortcut-distros.dat-finding-to-point-to-where-it-is.patch
new file mode 100644
index 000000000..0f3a515df
--- /dev/null
+++ b/debian/patches/0035-Shortcut-distros.dat-finding-to-point-to-where-it-is.patch
@@ -0,0 +1,35 @@
+From: Didier Raboud <odyx@debian.org>
+Date: Thu, 19 Sep 2019 08:37:21 +0200
+Subject: Shortcut distros.dat finding to point to where it is
+
+---
+ installer/core_install.py | 16 +---------------
+ 1 file changed, 1 insertion(+), 15 deletions(-)
+
+diff --git a/installer/core_install.py b/installer/core_install.py
+index eaecdc6..d690a52 100644
+--- a/installer/core_install.py
++++ b/installer/core_install.py
+@@ -816,21 +816,7 @@ class CoreInstall(object):
+ return [x for x in data.split(',') if x]
+
+ def load_distros(self):
+- if self.mode == MODE_INSTALLER:
+- distros_dat_file = os.path.join('installer', 'distros.dat')
+-
+- elif self.mode == MODE_CREATE_DOCS:
+- distros_dat_file = os.path.join(
+- '..', '..', 'installer', 'distros.dat')
+-
+- else: # MODE_CHECK
+- distros_dat_file = os.path.join(
+- prop.home_dir, 'installer', 'distros.dat')
+-
+- if not os.path.exists(distros_dat_file):
+- log.debug(
+- "DAT file not found at %s. Using local relative path..." % distros_dat_file)
+- distros_dat_file = os.path.join('installer', 'distros.dat')
++ distros_dat_file = '/usr/share/hplip/installer/distros.dat'
+
+ distros_dat = ConfigBase(distros_dat_file)
+ distros_list = self.__fixup_data(