4 # Additions by Steph Meslin-Weber:
6 # x Dot display of dependency installations
7 # - removed both of above
8 # - display is now X of Y packages and current package name being installed
16 test -e "$path/info/$pkg.control" || return 1
17 depends="`cat $path/info/$pkg.control|grep Depends|cut -d: -f2`"
19 # make sure we haven't already installed this package
20 isthere=`cat /tmp/.configured.list|grep $pkg`
21 if test "$isthere" != ""; then
25 if test "$depends" != ""; then
26 for dep in $depends; do
27 (echo $log|grep $dep >/dev/null 2>&1) || ( reconfigure $dep $path "$max" "$pkg" && log="$log $dep"; )
33 test -e "$path/info/$pkg.prerm" && $path/info/$pkg.prerm unconfigure >/dev/null 2>&1
34 test -e "$path/info/$pkg.postinst" && $path/info/$pkg.postinst configure >/dev/null 2>&1
38 # append the installed package name to the list
39 echo -ne "$pkg\n" >> /tmp/.configured.list
45 if test ! -e /etc/.configured; then
46 echo "Reconfiguring all packages installed to root:"
48 # create unique packages list file
49 rm -f /tmp/.configured.list
50 touch /tmp/.configured.list
54 for control in /usr/lib/ipkg/info/*.control; do
55 package=`echo $control|sed -e 's,.*/,,g; s,\.control,,g;'`
56 (echo $log|grep $package >/dev/null 2>&1) || reconfigure $package /usr/lib/ipkg
59 # cleanup unique packages list file
60 rm -f /tmp/.configured.list
63 test -f /usr/lib/ipkg/info/task-ramses || ipkg install task-ramses