summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2015-12-16 20:33:32 -0500
committerJason Woodward2015-12-16 20:33:32 -0500
commit1973f075ea70954c89736153cb01fc75771c4d62 (patch)
treea6fbdb55984d7fc125c544c597107c1108d80d57
parent6232b8121168c940769806c50f8a4eef3b0fe282 (diff)
downloadcpan2tgz-1973f075ea70954c89736153cb01fc75771c4d62.tar.gz
ignore ENOENT from initial make
-rw-r--r--Changelog6
-rwxr-xr-xcpan2tgz7
2 files changed, 11 insertions, 2 deletions
diff --git a/Changelog b/Changelog
index e501917..2cb5355 100644
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,10 @@
+0.6.9 Dec 16, 2016
+ * ignore ENOENT from initial make
+
+0.6.8 Feb 14, 2014
+ * Fix --destdir option to work with Module::Build::Tiny
+
0.6.7 May 21, 2013
* installed packages and dependency fix
diff --git a/cpan2tgz b/cpan2tgz
index f0ca992..0fba0bc 100755
--- a/cpan2tgz
+++ b/cpan2tgz
@@ -158,8 +158,11 @@ sub do_package
if ( $@ ) {
# make does not return the same when YAML or YAML::Syck is in
# use and $! is set to an internal non-fatal value from a YAML
- # check
- if (!($!{ENOTTY} && $HAS_YAML)) {
+ # check.
+ #
+ # Newer make calls may succeed but set ENOENT for some reason...
+ # also ignore.
+ if (!(($!{ENOTTY} && $HAS_YAML) || $!{ENOENT})) {
print "make ERROR [$module_name]: $!\n";
exit(1);
}