For SVN, the version must be manually specified
[mass-build.git] / build_system.py
index d74689ffd734fb82f3e220adbfda1c9d8b208c3e..9a646538f321c1e739777dccd3a2c784c13e2b8a 100644 (file)
@@ -52,7 +52,7 @@ try:
                        }
                        self.copyFromModule(module, 'buildDepends')
                        self.copyFromModule(module, 'binaryDepends')
-                       if buildSystem == 'cmakeParameters':
+                       if buildSystem == 'cmake':
                                self.copyFromModule(module, 'cmakeParameters')
                        self.vcs = vcs
                        self.configured = False # make sure configure is called before build/install
@@ -63,6 +63,8 @@ try:
 
                def configure(self, force=False): # force is ignored
                        self.autoDebuildConfig['version'] = self.vcs.version() # by now, data has been fetched, so this is possible
+                       if self.autoDebuildConfig['version'] is None:
+                               raise Exception("VCS did not provide us with a proper version, please fix this")
                        self.vcs.ignore('/debian/') # make sure the debian folder is ignored
                        os.chdir(self.sourceFolder)
                        #print self.autoDebuildConfig