summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2011-01-29 17:25:22 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2011-01-29 17:25:22 +0100
commit3f0533709b77979025c0c5bca64327e924935b19 (patch)
tree059332093d8714ec71cd3ccf679055b7d1d04f25
parent4a11b07deedbebdeb576889272a1e0ebbebb1ad3 (diff)
remove assure_pacman_static (), I think no one ever used this function
-rw-r--r--src/core/libs/lib-pacman.sh30
1 files changed, 0 insertions, 30 deletions
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 ()
{