def result_dir(target, package): """Return the directory to store the result in.""" return "%s/merges/%s/%s/%s" % (ROOT, target, pathhash(package), package)
def published_file(distro, source): """Return the location where published patches should be placed.""" return "%s/published/%s/%s/%s_%s.patch" \ % (ROOT, pathhash(source["Package"]), source["Package"], source["Package"], source["Version"])
def work_dir(package, version): """Return the directory to produce the merge result.""" return "%s/work/%s/%s/%s" % (ROOT, pathhash(package), package, version)
def diff_directory(distro, source): """Return the directory where we can find diffs.""" return "%s/diffs/%s/%s/%s" \ % (ROOT, distro, pathhash(source["Package"]), source["Package"])
def patch_directory(distro, source): """Return the directory where we can find local patch files.""" return "%s/patches/%s/%s/%s" \ % (ROOT, distro, pathhash(source["Package"]), source["Package"])
def diff_directory(distro, pv): """Return the directory where we can find diffs.""" return "%s/diffs/%s/%s/%s" \ % (config.get('ROOT'), distro, pathhash(pv.package.name), pv.package)
def dpatch_directory(distro, source): """Return the directory where we put dpatches.""" return "%s/dpatches/%s/%s/%s/%s" \ % (ROOT, distro, pathhash(source["Package"]), source["Package"], source["Version"])
def changes_file(distro, pv): """Return the location of a local changes file.""" return "%s/changes/%s/%s/%s/%s_%s_source.changes" \ % (config.get('ROOT'), distro, pathhash(pv.package.name), pv.package, pv.package, pv.version)
def poolPath(self): """Return something like 'pool/debian/main/libf/libfoo'""" return "%s/%s/%s" % (self.distro.getPoolPath( self.component), pathhash(self.name), self.name)
def result_dir(target, package): """Return the directory to store the result in.""" return "%s/merges/%s/%s/%s" % (config.get('ROOT'), target, pathhash(package), package)
def unpack_directory(pv): """Return the location of a local unpacked source.""" return "%s/unpacked/%s/%s/%s" % (config.get('ROOT'), pathhash(pv.package.name), pv.package, pv.version)
def work_dir(package, version): """Return the directory to produce the merge result.""" return "%s/work/%s/%s/%s" % (config.get('ROOT'), pathhash(package), package, version)
def published_file(distro, pv): """Return the location where published patches should be placed.""" return "%s/published/%s/%s/%s_%s.patch" \ % (config.get('ROOT'), pathhash(pv.package.name), pv.package, pv.package, pv.version)
def patch_directory(distro, pv): """Return the directory where we can find local patch files.""" return "%s/patches/%s/%s/%s" \ % (config.get('ROOT'), distro, pathhash(pv.package.name), pv.package)
def unpack_directory(source): """Return the location of a local unpacked source.""" return "%s/unpacked/%s/%s/%s" % (ROOT, pathhash(source["Package"]), source["Package"], source["Version"])
def changes_file(distro, source): """Return the location of a local changes file.""" return "%s/changes/%s/%s/%s/%s_%s_source.changes" \ % (ROOT, distro, pathhash(source["Package"]), source["Package"], source["Package"], source["Version"])
def path(self): """Return something like 'pool/debian/main/libf/libfoo'""" return "pool/%s/%s/%s" % (self.distro.poolName(self.component), pathhash(self.package_name), self.package_name)
def dpatch_directory(distro, pv): """Return the directory where we put dpatches.""" return "%s/dpatches/%s/%s/%s/%s" \ % (config.get('ROOT'), distro, pathhash(pv.package.name), pv.package, pv.version)