From cb723c94f1d415cbd5630e2db3799d7fda1c81d6 Mon Sep 17 00:00:00 2001 From: codehelp Date: Sat, 13 Aug 2011 10:13:56 +0000 Subject: [PATCH] Adapt multiple keyring support for 'first-time usage' git-svn-id: http://emdebian.org/svn/current@8063 563faec7-e20c-0410-992a-a66f704d0ccd --- multistrap | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/multistrap b/multistrap index b869c30..23b24a1 100755 --- a/multistrap +++ b/multistrap @@ -307,13 +307,13 @@ if ((defined $k) and (not defined $noauth)) { die (_g("Secure Apt handling failed - try without authentication.")) if ($retval != 0); } - if (-f "${dir}/etc/apt/trusted.gpg.d/multistrap.gpg") { - system_fatal ("cp ${dir}/etc/apt/trusted.gpg.d/multistrap.gpg ${dir}/etc/apt/trusted.gpg.d/trustdb.gpg"); - } else { - die (_g("Secure Apt handling failed - try without authentication.")); - } system ("rm -rf ${xdir}"); } + if (-f "${dir}/etc/apt/trusted.gpg.d/multistrap.gpg") { + system_fatal ("cp ${dir}/etc/apt/trusted.gpg.d/multistrap.gpg ${dir}/etc/apt/trusted.gpg.d/trustdb.gpg"); + } else { + die (_g("Secure Apt handling failed - try without authentication.")."\n"); + } } $config_str = ''; $config_str .= " -o Apt::Architecture=$arch";