File: apt-zip-inst

package info (click to toggle)
apt-zip 0.9
  • links: PTS
  • area: main
  • in suites: potato
  • size: 84 kB
  • ctags: 37
  • sloc: sh: 291; makefile: 63; awk: 10
file content (25 lines) | stat: -rwxr-xr-x 474 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

exithook()
{
    true
}

BINDIR=$(cd $(dirname $0) && pwd)
if [ -r ${BINDIR}/common.sh ]
then
    . ${BINDIR}/common.sh
else
    . /usr/share/apt-zip/common.sh
fi

if [ -r ${MEDIUM}/${APTZIPTARFILE} ]
then
    cd /var/cache/apt/archives
    echo >&2 "Unpacking tarball..."
    tar xf ${MEDIUM}/${APTZIPTARFILE}
    az_umount
    apt-get ${APTGETEXTRAOPTS} dselect-upgrade
else
    apt-get ${APTGETEXTRAOPTS} -o dir::cache::archives=${MEDIUM} dselect-upgrade
fi