Fixed issues with apt/gpg
This commit is contained in:
parent
9e40ecd48e
commit
ec6435aa3e
1 changed files with 4 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ mkdir -p ${LOCAL_APT}/etc/
|
||||||
mkdir -p ${LOCAL_APT}/var/lib/dpkg
|
mkdir -p ${LOCAL_APT}/var/lib/dpkg
|
||||||
touch ${LOCAL_APT}/var/lib/dpkg/status
|
touch ${LOCAL_APT}/var/lib/dpkg/status
|
||||||
touch ${LOCAL_APT}/etc/trusted.gpg
|
touch ${LOCAL_APT}/etc/trusted.gpg
|
||||||
|
chown _apt ${LOCAL_APT} -R
|
||||||
|
|
||||||
cat << EOF > ${LOCAL_APT}/etc/apt.conf
|
cat << EOF > ${LOCAL_APT}/etc/apt.conf
|
||||||
Dir::State "${LOCAL_APT}/var/lib/apt";
|
Dir::State "${LOCAL_APT}/var/lib/apt";
|
||||||
|
|
@ -82,6 +83,8 @@ pkgCacheGen::Essential "none";
|
||||||
Dir::Etc::Trusted "${LOCAL_APT}/etc/trusted.gpg";
|
Dir::Etc::Trusted "${LOCAL_APT}/etc/trusted.gpg";
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
export TRUSTEDFILE=${LOCAL_APT}/etc/trusted.gpg
|
||||||
|
|
||||||
if [ -f trusted.local.gpg ]
|
if [ -f trusted.local.gpg ]
|
||||||
then
|
then
|
||||||
cp trusted.local.gpg "${LOCAL_APT}/etc/trusted.gpg"
|
cp trusted.local.gpg "${LOCAL_APT}/etc/trusted.gpg"
|
||||||
|
|
@ -112,6 +115,7 @@ EOF
|
||||||
rm -rf PACKAGES/$PACKAGE
|
rm -rf PACKAGES/$PACKAGE
|
||||||
mkdir PACKAGES/$PACKAGE
|
mkdir PACKAGES/$PACKAGE
|
||||||
cd PACKAGES/$PACKAGE
|
cd PACKAGES/$PACKAGE
|
||||||
|
chown _apt .
|
||||||
|
|
||||||
#Get package and uncompress it
|
#Get package and uncompress it
|
||||||
apt-get update -c $LOCAL_APT/etc/apt.conf
|
apt-get update -c $LOCAL_APT/etc/apt.conf
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue