From 3f0533709b77979025c0c5bca64327e924935b19 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sat, 29 Jan 2011 17:25:22 +0100 Subject: remove assure_pacman_static (), I think no one ever used this function --- src/core/libs/lib-pacman.sh | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'src/core') diff --git a/src/core/libs/lib-pacman.sh b/src/core/libs/lib-pacman.sh index 4dde616..78e800e 100644 --- a/src/core/libs/lib-pacman.sh +++ b/src/core/libs/lib-pacman.sh @@ -1,35 +1,5 @@ #!/bin/bash -# taken and slightly modified from the quickinst script. -# don't know why one should need a static pacman because we already have a working one on the livecd. -assure_pacman_static () -{ - PACMAN_STATIC= - [ -f /tmp/usr/bin/pacman.static ] && PACMAN_STATIC=/tmp/usr/bin/pacman.static - [ -f /usr/bin/pacman.static ] && PACMAN_STATIC=/usr/bin/pacman.static - if [ "$PACMAN_STATIC" = "" ]; then - cd /tmp - if [ "$var_PKG_SOURCE_TYPE" = "net" ]; then - echo "Downloading pacman..." - wget $PKGARG/pacman*.pkg.tar.gz - if [ $? -gt 0 ]; then - echo "error: Download failed" - exit 1 - fi - tar -xzf pacman*.pkg.tar.gz - elif [ "$var_PKG_SOURCE_TYPE" = "cd" ]; then - echo "Unpacking pacman..." - tar -xzf $PKGARG/pacman*.pkg.tar.gz - fi - fi - [ -f /tmp/usr/bin/pacman.static ] && PACMAN_STATIC=/tmp/usr/bin/pacman.static - if [ "$PACMAN_STATIC" = "" ]; then - echo "error: Cannot find the pacman.static binary!" - exit 1 - fi -} - - # taken from the quickinst script. cd/net code merged together target_write_pacman_conf () { -- cgit v1.2.3-54-g00ecf