[Piuparts-commits] rev 554 - trunk
Holger Levsen
holger at alioth.debian.org
Wed Dec 9 14:39:03 UTC 2009
Author: holger
Date: 2009-12-09 14:39:03 +0000 (Wed, 09 Dec 2009)
New Revision: 554
Modified:
trunk/piuparts-slave.py
trunk/piuparts.py
Log:
various fixes to get keyring and apt authentication work
Modified: trunk/piuparts-slave.py
===================================================================
--- trunk/piuparts-slave.py 2009-12-09 13:26:09 UTC (rev 553)
+++ trunk/piuparts-slave.py 2009-12-09 14:39:03 UTC (rev 554)
@@ -231,10 +231,10 @@
oldcwd = os.getcwd()
os.chdir(self._slave_directory)
-
+
if not os.path.exists(self._config["chroot-tgz"]):
create_chroot(self._config, self._config["chroot-tgz"], self._config["distro"])
-
+
if (self._config["upgrade-test-distros"] and self._config["upgrade-test-chroot-tgz"]
and not os.path.exists(self._config["upgrade-test-chroot-tgz"])):
create_chroot(self._config, self._config["upgrade-test-chroot-tgz"],
Modified: trunk/piuparts.py
===================================================================
--- trunk/piuparts.py 2009-12-09 13:26:09 UTC (rev 553)
+++ trunk/piuparts.py 2009-12-09 14:39:03 UTC (rev 554)
@@ -151,7 +151,6 @@
self.check_broken_symlinks = True
self.warn_broken_symlinks = False
self.debfoster_options = None
- self.keyring = "/usr/share/keyrings/debian-archive-keyring.gpg"
self.do_not_verify_signatures = False
self.ignored_files = [
"/dev/MAKEDEV",
@@ -647,10 +646,10 @@
def create_apt_conf(self):
"""Create /etc/apt/apt.conf inside the chroot."""
create_file(self.relative("etc/apt/apt.conf"),
- 'APT::Get::AllowUnauthenticated "%s";\n' +
+ 'APT::Get::AllowUnauthenticated "%s";\n' % settings.apt_unauthenticated +
'APT::Get::Assume-Yes "yes";\n' +
'APT::Install-Recommends "0";\n' +
- 'APT::Install-Suggests "0";\n' % settings.apt_unauthenticated)
+ 'APT::Install-Suggests "0";\n')
def create_policy_rc_d(self):
"""Create a policy-rc.d that prevents daemons from running."""
@@ -1782,8 +1781,7 @@
default="-o MaxPriority=required -o UseRecommends=no -f -n apt debfoster",
help="Run debfoster with different parameters (default: -o MaxPriority=required -o UseRecommends=no -f -n apt debfoster).")
- parser.add_option("--do-not-verify-signatures",
- action="store_true", default=False,
+ parser.add_option("--do-not-verify-signatures", default=False,
help="Do not verify signatures from the Release files when running debootstrap.")
parser.add_option("-i", "--ignore", action="append", metavar="FILENAME",
@@ -1803,7 +1801,7 @@
"chroot when the program ends.")
parser.add_option("-K", "--keyring", metavar="FILE",
- action="store_true",
+ default = "/usr/share/keyrings/debian-archive-keyring.gpg",
help="Use FILE as the keyring to use with debootstrap when creating chroots.")
parser.add_option("--keep-sources-list",
@@ -1873,7 +1871,6 @@
parser.add_option("--scriptsdir", metavar="DIR",
help="Directory where are placed the custom scripts.")
-
parser.add_option("-t", "--tmpdir", metavar="DIR",
help="Use DIR for temporary storage. Default is " +
@@ -1923,7 +1920,7 @@
settings.keyringoption=""
settings.apt_unauthenticated="Yes"
else:
- settings.keyringoption="--keyring %s" % settings.keyring
+ settings.keyringoption="--keyring=%s" % settings.keyring
settings.apt_unauthenticated="No"
log_file_name = opts.log_file
More information about the Piuparts-commits
mailing list