Replace "copy" plugin by "dump" with std conventions

Bug #1597600 reported by Gustavo Niemeyer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Wishlist
Sergio Schvezov

Bug Description

We've discussed this before a few times, but it probably got lost in the volume of good work going on.

The "copy" plugin is a bit of an alien at the moment, with its "files" parameter which takes a map of origin and destination and remains out of the standard organization and file selection which is available to every other plugin: organize map, stage list, snap list, file sets, etc.

It sounds like addressing this might be done elegantly by obsoleting the "copy" plugin and introducing a new "dump" plugin which simply unpacks the _whole_ tarball into the plugin installdir, and allows the standard features to be applied to it (organize, etc).

I've been using locally such a dump plugin which consists solely of:

    def build(self):
        super().build()
        self.run(['cp', '-a', '.', self.installdir])

Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
milestone: none → 2.14
assignee: nobody → Sergio Schvezov (sergiusens)
importance: Undecided → Wishlist
status: New → In Progress
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.