summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXimin Luo <infinity0@pwned.gg>2015-03-02 17:09:55 +0100
committerXimin Luo <infinity0@pwned.gg>2015-03-02 17:09:55 +0100
commita86d6a0ecc6c85f49384cd845aa4292ce00a12fd (patch)
treeb43412af9081e7cca469253a225f8153d943e4cc
parent08bb5f5e26a9388b019e1ea4500c49e75b7180c3 (diff)
install-xpi: dh_link needs to be run from package home directory, e.g. when giving -D to dh
-rwxr-xr-xinstall-xpi4
1 files changed, 2 insertions, 2 deletions
diff --git a/install-xpi b/install-xpi
index e740454..3601038 100755
--- a/install-xpi
+++ b/install-xpi
@@ -223,7 +223,7 @@ def install_xpi(script_name, package, xpi_file, exclude, install_dir, links,
command = ["dh_link", "-p" + package, link_source, link_target]
if verbose:
print(" ".join(command))
- subprocess.call(command)
+ subprocess.call(command, cwd=os.path.dirname(debian_directory))
# get symlinks list
try:
@@ -243,7 +243,7 @@ def install_xpi(script_name, package, xpi_file, exclude, install_dir, links,
for link in links:
command = ["dh_link", "-p" + package, install_dir, link]
print(" ".join(command))
- subprocess.call(command)
+ subprocess.call(command, cwd=os.path.dirname(debian_directory))
def get_first_package(debian_directory):