| File: installer/debian/files/functions | |
|---|---|
| base-0 | patch-1 |
| Line 43 | Line 43 |
| rm $INSTROOT/tmp/data.tar.gz done } | rm $INSTROOT/tmp/data.tar.gz done } |
| # These two functions are ripped directly from crosshurd's # scripts. -NickM function apt_debfor { for p in "$@"; do ( cd "$TARGET/var/cache/apt/archives" local chk=0 for x in ${p}_*_*.deb; do if [ -e "$x" ]; then echo "/var/cache/apt/archives/$x" chk=1 fi done if [ "$chk" = 0 ]; then return 1; fi ); done } function feign_install { local pkg="$1" local deb="$(apt_debfor $pkg)" local ver="$( ar -p "$TARGET/$deb" control.tar.gz | zcat | tar -O -xf - control ./control 2>/dev/null | sed -ne 's/^Version: *//Ip' | head -n 1 )" mkdir -p "$TARGET/var/lib/dpkg/info" echo \ "Package: $pkg Version: $ver Status: install ok installed " >> "$TARGET/var/lib/dpkg/status" # IM HURD AN I TUCH UR GNUBS touch "$TARGET/var/lib/dpkg/info/${pkg}.list" } | |