com web/rmtools: fixed zip command, pack into zip root for now: client/include/PeclExt.php

From: Date: Tue, 22 Oct 2013 16:22:35 +0000
Subject: com web/rmtools: fixed zip command, pack into zip root for now: client/include/PeclExt.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-19120@lists.php.net to get a copy of this message
Commit: 1a6ec43cf6f3ab9c21bcc1ff22990cf639cb1c49 Author: Anatol Belski <ab@php.net> 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'");

« previous php.webmaster (#19120) next »