Commit:    1a6ec43cf6f3ab9c21bcc1ff22990cf639cb1c49
Author:    Anatol Belski <[email protected]>         Tue, 22 Oct 2013 18:22:35 +0200
Parents:   55123caeafcc21cb618794f3a607a931b9331a3a
Branches:  master

Link:       
http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=1a6ec43cf6f3ab9c21bcc1ff22990cf639cb1c49

Log:
fixed zip command, pack into zip root for now

Changed paths:
  M  client/include/PeclExt.php


Diff:
diff --git a/client/include/PeclExt.php b/client/include/PeclExt.php
index c5ea58f..81ffbc1 100644
--- a/client/include/PeclExt.php
+++ b/client/include/PeclExt.php
@@ -820,9 +820,10 @@ if (!function_exists('rmtools\combinations')) {
 nodoc:
 
                /* pack */
+               /* XXX implement the packaging of original fs structure from 
package.xml */
                $zip_file = TMP_DIR . DIRECTORY_SEPARATOR . 
$this->getPackageName() . '.zip';
                foreach ($files_to_zip as $file_to_zip) {
-                       $zip_cmd = $this->zip_cmd . ' -9 -D -m ' . $zip_file . 
' ' . $files_to_zip;
+                       $zip_cmd = $this->zip_cmd . ' -9 -D -j ' . $zip_file . 
' ' . $file_to_zip;
                        system($zip_cmd, $status);
                        if ($status) {
                                throw new \Exception("Couldn't zip files for 
'$zip_file'");


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to