diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-11-20 10:48:02 +0000 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-11-20 10:50:26 +0000 |
commit | 9853cd07c2e452e4fc3e5a7d96929e0e34416946 (patch) | |
tree | 7d2a2f5f1c40cc7fdc129efa259fb6c1ca2711c3 | |
parent | ece3114c0f0f608fb6ef8b99c979a748aed7efd0 (diff) |
package: add support for a post_intall step in packages
-rw-r--r-- | cerbero/commands/package.py | 1 | ||||
-rw-r--r-- | cerbero/packages/package.py | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/cerbero/commands/package.py b/cerbero/commands/package.py index ec65751..b8d7a60 100644 --- a/cerbero/commands/package.py +++ b/cerbero/commands/package.py @@ -80,6 +80,7 @@ class Package(Command): args.force, args.keep_temp) if None in paths: paths.remove(None) + p.post_install(paths) m.action(_("Package successfully created in %s") % ' '.join([os.path.abspath(x) for x in paths])) diff --git a/cerbero/packages/package.py b/cerbero/packages/package.py index 4aacd56..1686db5 100644 --- a/cerbero/packages/package.py +++ b/cerbero/packages/package.py @@ -137,6 +137,9 @@ class PackageBase(object): raise NotImplemented("'all_files_list' must be implemented by " "subclasses") + def post_install(self, paths): + pass + def set_mode(self, package_type): self.package_mode = package_type |