aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-10-24 22:01:37 +0000
committerThierry Vignaud <tv@mandriva.org>2006-10-24 22:01:37 +0000
commit494c6760d9fb4f4401cbe09ffc456e81dcab7655 (patch)
treeef774e280540a1e689cc5447f05040a0f7cd4b6d
parentd5def04a105732549b5041df2f6814db76560c66 (diff)
downloadrpmdrake-494c6760d9fb4f4401cbe09ffc456e81dcab7655.tar
rpmdrake-494c6760d9fb4f4401cbe09ffc456e81dcab7655.tar.gz
rpmdrake-494c6760d9fb4f4401cbe09ffc456e81dcab7655.tar.bz2
rpmdrake-494c6760d9fb4f4401cbe09ffc456e81dcab7655.tar.xz
rpmdrake-494c6760d9fb4f4401cbe09ffc456e81dcab7655.zip
(extract_header) if we cannot create a temp directory, just don't
display any data rather than dying
-rwxr-xr-xrpmdrake5
1 files changed, 4 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index 33bed85f..2b00b94d 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -477,7 +477,10 @@ sub extract_header {
$retries++;
-d $headersdir or warn qq(Could not create temporary directory "$headersdir");
}
- -d $headersdir or die qq(Could not create temporary directory "$headersdir");
+ -d $headersdir or do {
+ warn "Warning, could not extract header!";
+ goto header_non_available;
+ };
$packer->extract_archive($headersdir, $p->header_filename);
$p->update_header("$headersdir/" . $p->header_filename) or do {
warn "Warning, could not extract header!";