def check_fresh(fresh, update):
"""
Compare a refresh mode FRESH against an UPDATE time.
def check_fresh(fresh, update):
"""
Compare a refresh mode FRESH against an UPDATE time.
files[:] = ff
OS.path.walk(crossdir, visit, None)
OS.path.walk(OS.path.join(crossdir, "TOOLCHAIN", gnuarch),
files[:] = ff
OS.path.walk(crossdir, visit, None)
OS.path.walk(OS.path.join(crossdir, "TOOLCHAIN", gnuarch),
(arch in C.FOREIGN_ARCHS and ["--foreign"] or []) +
["--arch=" + arch, "--variant=minbase",
"--include=" + ",".join(C.BASE_PACKAGES),
(arch in C.FOREIGN_ARCHS and ["--foreign"] or []) +
["--arch=" + arch, "--variant=minbase",
"--include=" + ",".join(C.BASE_PACKAGES),
## Hack the dynamic linker to prefer libraries in `/usr' over
## `/usr/local'. This prevents `dpkg-shlibdeps' from becoming
## Hack the dynamic linker to prefer libraries in `/usr' over
## `/usr/local'. This prevents `dpkg-shlibdeps' from becoming
- run_schroot_source(dist, arch, ["eatmydata", "sh", "-e", "-c", """
+ run_schroot_source(dist, arch, ["eatmydata", "sh", "-e", "-c",
+ DEBCONF_TWEAKS + """
with Cleanup() as clean:
dist, arch = me._dist, me._arch
clean.enter(lockfile(chroot_src_lockfile(dist, arch)))
with Cleanup() as clean:
dist, arch = me._dist, me._arch
clean.enter(lockfile(chroot_src_lockfile(dist, arch)))
- run_schroot_source(dist, arch, ["eatmydata", "sh", "-e", "-c", """
+ run_schroot_source(dist, arch, ["eatmydata", "sh", "-e", "-c",
+ DEBCONF_TWEAKS + """
## Make sure the donor tree is up-to-date, and install the extra
## packages we need.
progress("install tools packages")
## Make sure the donor tree is up-to-date, and install the extra
## packages we need.
progress("install tools packages")
- run_schroot_session(session, ["eatmydata", "sh", "-e", "-c", """
+ run_schroot_session(session, ["eatmydata", "sh", "-e", "-c",
+ DEBCONF_TWEAKS + """
try: dest = dest[:dest.rindex("/")]
except ValueError: dest = ""
if path == "": path = link
try: dest = dest[:dest.rindex("/")]
except ValueError: dest = ""
if path == "": path = link