com web/rmtools: Care about directories: include/PeclExt.php
| From: | Anatol Belski | Date: | Tue, 05 Sep 2017 18:19:06 +0000 |
| Subject: | com web/rmtools: Care about directories: include/PeclExt.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26374@lists.php.net to get a copy of this message | ||
Commit: bc921ece7ecb620e6ddbfd4b0fde2b3c0a21e740
Author: Anatol Belski <ab@php.net> Tue, 5 Sep 2017 20:19:06 +0200
Parents: 0166cdbf2bbd1be6d095d1f2a9532f30786756f2
Branches: master
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=bc921ece7ecb620e6ddbfd4b0fde2b3c0a21e740
Log:
Care about directories
Changed paths:
M include/PeclExt.php
Diff:
diff --git a/include/PeclExt.php b/include/PeclExt.php
index 9d90285..d27950c 100644
--- a/include/PeclExt.php
+++ b/include/PeclExt.php
@@ -887,7 +887,7 @@ nodoc:
/* 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 -j ' . $zip_file . ' ' .
$file_to_zip;
+ $zip_cmd = $this->zip_cmd . ' -9 ' . $zip_file . ' ' .. $file_to_zip;
system($zip_cmd, $status);
if ($status) {
throw new \Exception("Couldn't zip files for '$zip_file'");