more general module loading; do not use __dict__ directly
[mass-build.git] / build_system.py
index 9dceb7df7e689e7782a69ef3fa9462f2ff5e953e..1697dc63813d326b9855a2a7a41dc98c3f5d1909 100644 (file)
@@ -110,8 +110,7 @@ try:
                                        autoDebuildConfig[option] = self.config[option]
                        # create Debian files
                        os.chdir(self.sourceFolder)
-                       if os.path.isdir('debian'): # clean previous build attempts
-                               shutil.rmtree('debian')
+                       auto_debuild.deleteDebianFolder()
                        files = auto_debuild.createDebianFiles(autoDebuildConfig)
                        # build package(s)
                        auto_debuild.buildDebianPackage(autoDebuildConfig)