diff treepkg/packager.py @ 499:e44c9c3f69f8

consolidate enterprise packagers
author Bjoern Ricks <bricks@intevation.de>
date Wed, 20 Oct 2010 07:51:53 +0000
parents ca95be9d033a
children 35759274aeb4
line wrap: on
line diff
--- a/treepkg/packager.py	Fri Oct 15 17:03:11 2010 +0000
+++ b/treepkg/packager.py	Wed Oct 20 07:51:53 2010 +0000
@@ -632,7 +632,10 @@
         env["DEB_BUILD_PARALLEL"] = "true"
         return env
 
-    def packager_for_new_revision(self):
+    def new_revsision_packager(self):
+        """ Checks if a new revision is available and returns a new
+        revision packager class. Don't override this method in a subclass.
+        Use packager_for_new_revision() instead."""
         current_revision = (self.last_changed_revision(),
                             self.rules_working_copy.last_changed_revision())
         logging.info("New revision is %s", current_revision)
@@ -644,6 +647,9 @@
             logging.info("Revision %s has already been packaged.",
                          current_revision)
 
+    def packager_for_new_revision(self):
+        return self.new_revsision_packager()
+
     def package_if_updated(self, revision=None, do_svn_update=True):
         """Returns a new packager if the working copy has not been packaged yet.
         If do_svn_update is true -- the default -- update the working
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)