package multistrap
tags 595017 + patch
thank you

I copied the -oFoo=Bar value from multistrap's apt-get call and
stuffed them into apt-config dump:

    apt-config dump -oApt::Architecture=amd64
    -oApt::Get::Download-Only=true -oApt::Install-Recommends=false
    -oDir=/x/ -oDir::Etc=/x/etc/apt/
    -oDir::Etc::SourceList=/x/etc/apt/sources.list.d/multistrap.sources.list
    -oDir::State=/x/var/lib/apt/
    -oDir::State::Status=/x/var/lib/dpkg/status
    -oDir::Cache=/x/var/cache/apt/

Attached is a comparison of the output from same in 0.8.0 and
0.7.25.3.  I suspect multistrap should add calls should add

    -oDir::Etc::trusted=/etc/apt/trusted.gpg
    -oDir::Etc::trustedparts=/etc/apt/trusted.gpg.d

This patch appears to work for me.  I haven't confirmed that it
doesn't break apt 0.7.25.3 users, but I wouldn't expect it to.

    --- /sudo:r...@dali:/usr/sbin/multistrap
    +++ /tmp/buffer-content-1378wGF
    @@ -285,6 +285,11 @@
     $config_str .= " -o Dir::State=${dir}${libdir}";
     $config_str .= " -o Dir::State::Status=${dir}${dpkgdir}status";
     $config_str .= " -o Dir::Cache=${dir}${cachedir}";
    +# As at apt 0.8.0, it is necessary to manually point apt back at the
    +# external GPG keys, since until the keyring packages are unpacked
    +# (and configured) in ${dir}, there won't BE a keyring there.
    +$config_str .= " -oDir::Etc::trusted=/etc/apt/trusted.gpg";
    +$config_str .= " -oDir::Etc::trustedparts=/etc/apt/trusted.gpg.d";
     printf (_g("Getting package lists: apt-get %s update\n"), $config_str);
     $retval = system ("apt-get $config_str update");
     die (sprintf (_g("apt update failed. Exit value: %d\n"), ($retval/256)))

    Diff finished.  Wed Sep  1 00:03:20 2010



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to