# HG changeset patch # User Bernhard Herzog # Date 1231857119 0 # Node ID 7dbf0a3443bb59830aac8e63cb76e03caceb08fd # Parent e387b879fd384345ebc84cab516f682d5c320627 Use treepkg.subversion.ManualWorkingCopy for the debian directory in a PackageTrack diff -r e387b879fd38 -r 7dbf0a3443bb treepkg/packager.py --- a/treepkg/packager.py Tue Jan 13 14:21:37 2009 +0000 +++ b/treepkg/packager.py Tue Jan 13 14:31:59 2009 +0000 @@ -16,7 +16,7 @@ import new import util -from subversion import SvnRepository, SvnWorkingCopy +from subversion import SvnRepository, SvnWorkingCopy, ManualWorkingCopy import run import status import debian @@ -339,6 +339,7 @@ repo = SvnRepository(svn_url, self.svn_external_subdirs) self.working_copy = SvnWorkingCopy(repo, self.checkout_dir, logger=logging) + self.rules_working_copy = ManualWorkingCopy(self.debian_dir) checkout_dir = util.filenameproperty("checkout") debian_dir = util.filenameproperty("debian") @@ -419,7 +420,7 @@ def copy_debian_directory(self, to_dir): logging.info("Copying debian directory to %r", to_dir) - shutil.copytree(self.debian_dir, to_dir) + self.rules_working_copy.export(to_dir) def debian_environment(self): """Returns the environment variables for the debian commands"""