Skip to content
Snippets Groups Projects
Commit ec6435aa authored by Ruben Rodriguez's avatar Ruben Rodriguez
Browse files

Fixed issues with apt/gpg

parent 9e40ecd4
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,7 @@ mkdir -p ${LOCAL_APT}/etc/
mkdir -p ${LOCAL_APT}/var/lib/dpkg
touch ${LOCAL_APT}/var/lib/dpkg/status
touch ${LOCAL_APT}/etc/trusted.gpg
chown _apt ${LOCAL_APT} -R
cat << EOF > ${LOCAL_APT}/etc/apt.conf
Dir::State "${LOCAL_APT}/var/lib/apt";
......@@ -82,6 +83,8 @@ pkgCacheGen::Essential "none";
Dir::Etc::Trusted "${LOCAL_APT}/etc/trusted.gpg";
EOF
export TRUSTEDFILE=${LOCAL_APT}/etc/trusted.gpg
if [ -f trusted.local.gpg ]
then
cp trusted.local.gpg "${LOCAL_APT}/etc/trusted.gpg"
......@@ -112,6 +115,7 @@ EOF
rm -rf PACKAGES/$PACKAGE
mkdir PACKAGES/$PACKAGE
cd PACKAGES/$PACKAGE
chown _apt .
#Get package and uncompress it
apt-get update -c $LOCAL_APT/etc/apt.conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment