summaryrefslogtreecommitdiff
path: root/dh_elpa
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2015-08-23 10:55:33 +0200
committerDavid Bremner <david@tethera.net>2015-08-23 10:58:26 +0200
commit95980b5b801ca235ed152d62946e73bfca0199e1 (patch)
tree111f8df4c5cc6f99be285a0b49bfac8b778dd52d /dh_elpa
parente69d3eabc883c27e303f58dd6f94472e7850243d (diff)
add check for missing foo-pkg.el
The elisp code dies mysteriously if it isn't there
Diffstat (limited to 'dh_elpa')
-rwxr-xr-xdh_elpa2
1 files changed, 2 insertions, 0 deletions
diff --git a/dh_elpa b/dh_elpa
index b62050d..c84f94c 100755
--- a/dh_elpa
+++ b/dh_elpa
@@ -138,6 +138,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
isnative($package);
if ($file) {
@files=filearray($file, ".");
+ scalar(@files) == 1 || grep { m/\b${elpapkg}-pkg.el$/ } @files or
+ error "missing ${elpapkg}-pkg.el";
}
if (($package eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL})
&& @ARGV) {