}
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
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
if vcsName == 'kde+git':
self.vcs = vcs.KDEGit(self.sourceFolder(), module['name'], module['version'])
elif vcsName == 'kde+svn':
- self.vcs = vcs.KDESVN(self.sourceFolder(), module['svn-path'])
+ self.vcs = vcs.KDESVN(self.sourceFolder(), module['svn-path'], module.get('versionName'))
else:
raise Exception("Unknown VCS type "+vcsName)
# build system
# Fetch updates via SVN
class SVN:
- def __init__(self, folder, svnPath):
+ def __init__(self, folder, svnPath, versionName):
self.folder = os.path.abspath(folder)
self.svnPath = svnPath
-
+ self.versionName = versionName
+
def update(self):
if os.path.exists(self.folder):
os.chdir(self.folder) # go into repository
else:
subprocess.check_call(['svn', 'co', self.svnPath, self.folder])# just download it
+ def version(self):
+ return self.versionName
+
+ def ignore(self, name):
+ pass
+
class KDESVN(SVN):
- def __init__(self, folder, svnPath):
- SVN.__init__(self, folder, 'svn://svn.kde.org/home/kde/'+svnPath)
+ def __init__(self, folder, svnPath, version):
+ SVN.__init__(self, folder, 'svn://svn.kde.org/home/kde/'+svnPath, version)