예제 #1
0
def result_dir(target, package):
    """Return the directory to store the result in."""
    return "%s/merges/%s/%s/%s" % (ROOT, target, pathhash(package), package)
예제 #2
0
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"])
예제 #3
0
def work_dir(package, version):
    """Return the directory to produce the merge result."""
    return "%s/work/%s/%s/%s" % (ROOT, pathhash(package), package, version)
예제 #4
0
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"])
예제 #5
0
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"])
예제 #6
0
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)
예제 #7
0
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"])
예제 #8
0
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)
예제 #9
0
 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)
예제 #10
0
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)
예제 #11
0
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)
예제 #12
0
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)
예제 #13
0
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)
예제 #14
0
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)
예제 #15
0
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"])
예제 #16
0
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"])
예제 #17
0
 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)
예제 #18
0
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)