Avoid special case for linux package
This commit is contained in:
parent
6d5858c1f3
commit
ffe01d5c25
1 changed files with 4 additions and 9 deletions
|
|
@ -92,6 +92,7 @@ cat << EOF > ${LOCAL_APT}/etc/apt.sources.list
|
||||||
deb-src $MIRROR $UPSTREAM main universe
|
deb-src $MIRROR $UPSTREAM main universe
|
||||||
deb-src $MIRROR $UPSTREAM-updates main universe
|
deb-src $MIRROR $UPSTREAM-updates main universe
|
||||||
deb-src $MIRROR $UPSTREAM-security main universe
|
deb-src $MIRROR $UPSTREAM-security main universe
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
[ "1$EXTERNAL" != "1" ] && eval echo "$EXTERNAL" >> ${LOCAL_APT}/etc/apt.sources.list
|
[ "1$EXTERNAL" != "1" ] && eval echo "$EXTERNAL" >> ${LOCAL_APT}/etc/apt.sources.list
|
||||||
|
|
@ -100,15 +101,9 @@ EOF
|
||||||
|
|
||||||
apt-get update -c $LOCAL_APT/etc/apt.conf
|
apt-get update -c $LOCAL_APT/etc/apt.conf
|
||||||
|
|
||||||
if [ $PACKAGE = linux ]
|
#Get package and uncompress it
|
||||||
then
|
apt-get source $PACKAGE --download-only -c ${LOCAL_APT}/etc/apt.conf
|
||||||
apt-get --force-yes -y build-dep linux-libc-dev
|
dpkg-source -x --skip-patches *.dsc source
|
||||||
apt-get source linux-libc-dev --download-only
|
|
||||||
dpkg-source -x --skip-patches *.dsc source
|
|
||||||
else
|
|
||||||
apt-get source $PACKAGE --download-only -c ${LOCAL_APT}/etc/apt.conf
|
|
||||||
dpkg-source -x --skip-patches *.dsc source
|
|
||||||
fi
|
|
||||||
|
|
||||||
find -maxdepth 1 -type f | xargs rm
|
find -maxdepth 1 -type f | xargs rm
|
||||||
cd source
|
cd source
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue