~ubuntu-core-dev/debian-installer/xenial-proposed

« back to all changes in this revision

Viewing changes to build/get-packages

  • Committer: Colin Watson
  • Date: 2007-11-28 15:27:10 UTC
  • mfrom: (664.1.1444)
  • Revision ID: cjwatson@canonical.com-20071128152710-u9183jjlufbt4vxy
Tags: 20041027ubuntu1
* Resynchronise with Debian.
* build/boot/powerpc/yaboot.conf, build/config/common,
  doc/manual/build/common.ent: Update for Hoary.
* doc/manual/en/administrivia/contributors.xml: Remove specific mention of
  Warty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
#
3
 
# get-packages <type> <package> ...
 
3
# get-packages <type> <package> | <update> ...
4
4
#
5
5
# Download deb or udeb package with the help of apt-get
6
6
# type : deb | udeb
67
67
# Prepare APTDIR
68
68
mkdir -p $APTDIR/state/lists/partial
69
69
mkdir -p $APTDIR/cache/archives/partial
 
70
echo -n > $APTDIR/state/status
70
71
if [ "$TYPE" = "deb" ]; then
71
 
        echo -n > $APTDIR/state/status
72
72
        APT_GET="$APT_GET -o Dir::State::Status=`pwd`/$APTDIR/state/status"
73
73
else
74
74
        # Prime status file with system libraries
102
102
        $APT_GET autoclean
103
103
fi
104
104
 
 
105
if [ "$PACKAGES" = update ]; then
 
106
        exit 0
 
107
fi
 
108
 
105
109
# If there are local (u)debs, remove them from the list of things to
106
110
# get. Then get all the (u)debs that are left to get. Note that the
107
111
# trailing blank on the next line is significant. It makes the sed