diff options
author | Roger Leigh <rleigh@debian.org> | 2010-08-29 11:58:51 +0100 |
---|---|---|
committer | Roger Leigh <rleigh@debian.org> | 2010-08-29 11:58:51 +0100 |
commit | 323d3a82137a396b956f2dcab79d2a9be6d6bdf5 (patch) | |
tree | 52762062ee79f5bc9387699260a3aade23ad5556 /etc | |
parent | 97f01198e14c90b5fac3008555dceb7300d15af2 (diff) | |
download | schroot-323d3a82137a396b956f2dcab79d2a9be6d6bdf5.tar.gz |
chroot::file: Remove support for zip archives
zip does not archive FIFOs or device nodes, and so is not usable
for archiving chroots
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/setup.d/05file | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/etc/setup.d/05file b/etc/setup.d/05file index 0891cb2a..7fa7e4bf 100755 --- a/etc/setup.d/05file +++ b/etc/setup.d/05file @@ -37,8 +37,6 @@ check_filetype() filetype="tgz" elif echo "$CHROOT_FILE" | egrep -q '(\.tar\.bz2|\.tbz)$'; then filetype="tbz" - elif echo "$CHROOT_FILE" | grep -q '\.zip$'; then - filetype="zip" else fatal "Unsupported filetype for $CHROOT_FILE" fi @@ -57,8 +55,6 @@ unpack_file() tar $TAR_VERBOSE -xzf "$CHROOT_FILE" elif [ "$filetype" = "tbz" ]; then tar $TAR_VERBOSE -xjf "$CHROOT_FILE" - elif [ "$filetype" = "zip" ]; then - unzip $ZIP_VERBOSE "$CHROOT_FILE" else fatal "Unsupported filetype for $CHROOT_FILE" fi @@ -77,8 +73,6 @@ repack_file() tar $TAR_VERBOSE -czf "$NEWFILE" . elif [ "$filetype" = "tbz" ]; then tar $TAR_VERBOSE -cjf "$NEWFILE" . - elif [ "$filetype" = "zip" ]; then - zip $ZIP_VERBOSE -r "$NEWFILE" . else fatal "Unsupported filetype for $CHROOT_FILE" fi @@ -100,8 +94,6 @@ repack_file() if [ "$VERBOSE" = "verbose" ]; then TAR_VERBOSE="-v" -else - ZIP_VERBOSE="-q" fi if [ "$CHROOT_TYPE" = "file" ]; then |