[Rock-dev] [rock] #33: [Autobuild] Zip import not working

rock noreply at opendfki.de
Wed Aug 10 19:24:57 CEST 2011


#33: [Autobuild] Zip import not working
-------------------+----------------------------
Reporter:  thro02  |      Owner:  sylvain.joyeux
    Type:  defect  |     Status:  new
Priority:  normal  |  Component:  base
Keywords:          |
-------------------+----------------------------
 Zip import fails on import with:

 Build failed:
 /opt/workspace/rimres/migration/install/cache/tinyxml_2_6_2.zip does not
 contain directory called tinyxml. Did you forget to use the :archive_dir
 option ?: Autobuild::Exception

 Archive contains subfolder, here tinyxml.

 Problem seems twofold:
 (a) unzip is never called
 (b) unzip does only freshen existing files if option '-f' is provided,
 thus fails for a first import

 Suggested change of autobuild/import/archive.rb
 154,156c154
 <                 cmd = [ 'unzip', '-o', cachefile, '-d', main_dir ]
 <                 Subprocess.run(package, :import, *cmd)
 <
 ---
 >                 cmd = [ 'unzip', '-o', '-f', cachefile, '-d', main_dir ]

-- 
Ticket URL: <https://rock.opendfki.de/ticket/33>
rock <https://rock.opendfki.de>
rock: the robot construction kit


More information about the Rock-dev mailing list