diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-10-24 22:01:37 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-10-24 22:01:37 +0000 |
commit | 494c6760d9fb4f4401cbe09ffc456e81dcab7655 (patch) | |
tree | ef774e280540a1e689cc5447f05040a0f7cd4b6d | |
parent | d5def04a105732549b5041df2f6814db76560c66 (diff) | |
download | rpmdrake-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-x | rpmdrake | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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!"; |