Re: e2 branch - pre-release

And another one for the pre-release.
The unpack plugin is broken on FreeBSD (maybe others as well):

>tar --overwrite -xpzf /home/marcus/downloads/tarball.tar.gz (30500)
>tar: unrecognized option `--overwrite'
[...]

BSD tar does not have an --overwrite flag. A patch is attached.

Regards
Marcus
--- plugins/e2p_unpack.c.orig   Tue Sep  6 19:39:36 2005
+++ plugins/e2p_unpack.c        Tue Sep  6 19:39:58 2005
@@ -225,11 +225,11 @@
   //various strstr's all applied to localised strings
   if ((strstr (info->filename, ".tar.gz") != NULL) ||
       (strstr (info->filename, ".tgz") != NULL))
-    command = "tar --overwrite -xpzf %s";
+    command = "tar -xpzf %s";
   else if (strstr (info->filename, ".tar.bz2") != NULL)
-    command = "tar --overwrite -xpjf %s";
+    command = "tar -xpjf %s";
   else if (strstr (info->filename, ".tar") != NULL)
-    command = "tar --overwrite -xpf %s";
+    command = "tar -xpf %s";
   //.deb command (for what version ?) provided by Martin Zelaia
 //  else if (strstr(info->filename, ".deb") != NULL)
 //    command = "mkdir ./DEBIAN ./CONTENTS;>ar -x %s | tar -xfz control.tar.gz 
-C ./DEBIAN | tar -xfz data.tar.gz -C ./CONTENTS; rm control.tar.gz 
data.tar.gz;cp ./DEBIAN/control ./INFO;rm ./debian-binary";

Other related posts: