Bug 11008

Summary: не работает параметр suffix= для директивы zip
Product: Sisyphus Reporter: Alexey Gladkov <legion>
Component: gearAssignee: Dmitry V. Levin <ldv>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: glebfm, ldv, legion, placeholder
Version: unstable   
Hardware: all   
OS: Linux   

Description Alexey Gladkov 2007-03-04 15:07:00 MSK
В документации сказано:
#  zip: tree_path [options] 
#  zip?: tree_path [options] 
...
#    suffix=suffix      - override default output file name suffix.

Либо документация не полная, либо suffix= не работает.
Вот тест:

$ find . -type f \! -wholename '*/.git/*'
./.gear-rules
./firefox-switch-locales.spec
./switch-locales/chrome/content/switch-tbird.xul
./switch-locales/chrome/content/switch.js
./switch-locales/chrome/content/switch.xul
./switch-locales/chrome.manifest
./switch-locales/install.rdf
./switch-locales-2.0.xpi

$ cat ./.gear-rules
#copy: *.xpi
zip: switch-locales suffix=.xpi

$ gear -v --commit --export-dir=/tmp/zzz
Created commit 01696302541d274eb7ac1361066de952ba2ff223
 7 files changed, 159 insertions(+), 2 deletions(-)
 create mode 100644 switch-locales/chrome.manifest
 create mode 100644 switch-locales/chrome/content/switch-tbird.xul
 create mode 100644 switch-locales/chrome/content/switch.js
 create mode 100644 switch-locales/chrome/content/switch.xul
 create mode 100644 switch-locales/install.rdf
gear: Temporarily committed local changes.
gear: Extracted "switch-locales-2.0.zip" archive.
gear: Extracted "firefox-switch-locales.spec" specfile.
gear: Reverted temporary commit.

$ find /tmp/zzz        
/tmp/zzz
/tmp/zzz/firefox-switch-locales.spec
/tmp/zzz/switch-locales-2.0.zip
Comment 1 Dmitry V. Levin 2007-03-04 16:16:42 MSK
Try 1.2.0-alt1-1-gd805957
Comment 2 Alexey Gladkov 2007-03-04 18:22:19 MSK
Исправлено