summaryrefslogtreecommitdiff
path: root/dh_elpa
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2015-07-17 18:40:17 +0200
committerDavid Bremner <david@tethera.net>2015-07-17 18:40:27 +0200
commit64d79f0d5a30f121799a1bfb13d5c49da90b8b83 (patch)
tree65eb1e33676d74b0cedaee61a7671a1d6d2e73d7 /dh_elpa
parent7bbfed658b723a39a0a81811f1e7734d14205ce7 (diff)
update load paths
dh-elpa.el needs to be loaded from the "never-byte-compiled" path, but other packages might need to be loaded from the "not-yet-byte-compiled" path"
Diffstat (limited to 'dh_elpa')
-rwxr-xr-xdh_elpa7
1 files changed, 5 insertions, 2 deletions
diff --git a/dh_elpa b/dh_elpa
index 617c6f5..2506dad 100755
--- a/dh_elpa
+++ b/dh_elpa
@@ -98,10 +98,12 @@ $dh{BYTECOMPILE} = 1 unless defined($dh{BYTECOMPILE});
my $elpadir;
+my $dhelpadir="/usr/share/emacs/site-lisp/elpa";
+
if ($dh{BYTECOMPILE}) {
$elpadir="/usr/share/emacs/site-lisp/elpa-src";
} else {
- $elpadir="/usr/share/emacs/site-lisp/elpa";
+ $elpadir=$dhelpadir;
}
foreach my $package (@{$dh{DOPACKAGES}}) {
@@ -164,7 +166,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
}
doit_quietly(qw{emacs -batch -Q -l package},
- '--eval',"(add-to-list 'package-directory-list \"$elpadir\")",
+ '--eval',"(add-to-list 'package-directory-list \"$dhelpadir\")",
+ '--eval',"(add-to-list 'package-directory-list \"$elpadir\")",
qw{-f package-initialize -l dh-elpa.el},
qw{-f dhelpa-batch-install-file}, "$tmp/$elpadir", $pkg_file);
}