summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2007-02-27 15:56:17 +0000
committerJason Woodward2007-02-27 15:56:17 +0000
commita3b97a9d27627d72fcd015f0e5000dc840346e03 (patch)
tree1d32364d8efbe8e9323e77d8ca72ca278254643e
parent6774275de24b99be75b6ce049208d369589980fc (diff)
downloadcpan2tgz-a3b97a9d27627d72fcd015f0e5000dc840346e03.tar.gz
Exit on installpkg error. Fix for using --ingnoreinstalled with packages w/o dependencies (thanks C��dri)
-rw-r--r--Changelog4
-rwxr-xr-xcpan2tgz4
2 files changed, 5 insertions, 3 deletions
diff --git a/Changelog b/Changelog
index d5aca68..66ea64e 100644
--- a/Changelog
+++ b/Changelog
@@ -1,5 +1,7 @@
-0.6.2 Feb 02, 2007
+0.6.2 Feb 27, 2007
+ * Exit on installpkg error
+ * Fix for using --ingnoreinstalled with packages w/o dependencies (thanks Cédri)
* Fix for Bundle:: and Distribution:: modules
0.6.1 Nov 11, 2006
diff --git a/cpan2tgz b/cpan2tgz
index d212b86..2b65945 100755
--- a/cpan2tgz
+++ b/cpan2tgz
@@ -155,7 +155,7 @@ sub do_package
}
my @deps;
- if ($ignore_installed_deps) {
+ if ($ignore_installed_deps && $pack->prereq_pm()) {
# only get the deps that are not installed
@deps = grep { defined && m/\w+/; }
@@ -301,7 +301,7 @@ SCRIPT
# install the package
unless ($no_install_after_building) {
- system("installpkg $package_dir/$pkg_name");
+ system("installpkg $package_dir/$pkg_name") && exit;
}
clear_build_dir($dest_dir);