for x in listdir(inforoot):
self.copyfile(inforoot+"/"+x)
+ # do we have a origin repository name for the current package
+ repopath = os.sep.join(self.settings["O"].split(os.sep)[:-2])
+ if mydbapi != None:
+ for reponame in mydbapi.getRepositories():
+ if mydbapi.getRepositoryPath(reponame) == repopath:
+ fd = open(os.path.join(self.dbtmpdir, "repository"), "w")
+ fd.write(reponame+"\n")
+ fd.close()
+ break
+
# write local package counter for recording
lcfile = open(os.path.join(self.dbtmpdir, "COUNTER"),"w")
lcfile.write(str(counter))