+branch/ubiquity

1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/sh
# Some scripts use this to figure out the architecture. In ubiquity, just
# call dpkg instead, except that --print-os needs a bit of special-casing.
if [ "$1" = --print-os ]; then
    # TODO: hardcoded for now
    echo linux
elif [ "$1" = -c ]; then
    # udpkg -c has simpler output than dpkg -c.
    dpkg --fsys-tarfile "$2" | tar t
else
    exec dpkg "$@"
fi