Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-702

Merging zip files does not retain file permissions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.20
    • 1.4.21
    • Packaging
    • None

    Description

      Given a project containing a file `script.sh` with certain unix permissions set on it; the following project will not retain those permissions in merged-0.1.zip

      define 'foo', :version => 0.1 do
        base = package(:zip, :id => 'base').tap do |pkg|
          pkg.include _('script.sh')
        end
      
        package(:zip, :id => 'merged').tap do |pkg|
          pkg.merge base
        end
      end
      

      This is caused by the way ZipExpander and ZipTask work together. Zip entries are passed through as Procs and don't get the opportunity to set permissions.

      Attachments

        Activity

          People

            pdonald Peter Donald
            pepijnve Pepijn Van Eeckhoudt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: