self.copyOption(config, 'jobs', 'parallelJobs')
self.copyOption(module, 'dbgPackage')
self.copyOption(module, 'skipFiles', 'binarySkipFiles')
+ self.copyOption(module, 'installFiles', 'binaryInstall')
self.copyOption(module, 'buildDepends')
self.copyOption(module, 'binaryDepends')
self.copyOption(module, 'binaryRecommends')
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
self.files = auto_debuild.createDebianFiles(self.autoDebuildConfig)
if v.startswith('v'): v = v[1:]
return v
- def ignore(self, name):
- with open(os.path.join(self.folder, '.git', 'info', 'exclude'), 'r+') as f:
- for line in f:
- line = line.replace('\n', '').replace('\r', '')
- if line == name: return # is already ignored
- print >>f, name # add ignore line
-
class KDEGit(Git):
def __init__(self, folder, name, commit):
Git.__init__(self, folder, 'kde:'+name, commit)
def version(self):
return self.versionName
- def ignore(self, name):
- pass
-
class KDESVN(SVN):
def __init__(self, folder, svnPath, version):
SVN.__init__(self, folder, 'svn://svn.kde.org/home/kde/'+svnPath, version)