summaryrefslogtreecommitdiff
path: root/methods/floppy.install
diff options
context:
space:
mode:
authorIan Jackson <ian@chiark.chu.cam.ac.uk>1996-04-04 01:58:40 +0100
committerIan Jackson <ian@chiark.chu.cam.ac.uk>1996-04-04 01:58:40 +0100
commit1b80fb16c22db72457d7a456ffbf1f70a8dfc0a5 (patch)
treec0ee53eba4e71f4c246ee9e45fbd90e931bbd1f9 /methods/floppy.install
downloaddpkg-1b80fb16c22db72457d7a456ffbf1f70a8dfc0a5.tar.gz
dpkg (1.1.4); priority=MEDIUM
* Allow overwriting of conflicting packages being removed. (Bug#2614.) * a.out control file says Pre-Depends: libc4 | libc. (Bug#2640.) * ELF control file and libc dependencies changed to use finalised scheme. * ELF control file and libc dependencies for i386 only. (Bug#2617.) * Guidelines say use only released libraries and compilers. * Install wishlist as /usr/doc/dpkg/WISHLIST. * Remove spurious entries for Guidelines in info dir file. * dpkg-deb --build checks permissions on control (DEBIAN) directory. * Spaces in control file fields not copied by dpkg-split. (Bug#2633.) * Spaces in split file part control data ignore. (Bug#2633.) * Portability fixes, including patch from Richard Kettlewell. * Fixed minor configure.in bug causing mangled GCC -W options. -- Ian Jackson <ian@chiark.chu.cam.ac.uk> Thu, 4 Apr 1996 01:58:40 +0100
Diffstat (limited to 'methods/floppy.install')
-rw-r--r--methods/floppy.install100
1 files changed, 100 insertions, 0 deletions
diff --git a/methods/floppy.install b/methods/floppy.install
new file mode 100644
index 000000000..a9823a492
--- /dev/null
+++ b/methods/floppy.install
@@ -0,0 +1,100 @@
+#!/bin/sh
+
+set -e
+vardir="$1"
+method=$2
+option=$3
+
+cd "$vardir/methods/floppy"
+
+mountpoint="$vardir/methods/mnt"
+
+. ./shvar.$option
+
+help () {
+ echo '
+Now I need the disks containing the packages to be installed.
+I shall keep telling you what is left to be done, in case that
+is helpful deciding which floppy to use.'
+}
+
+help
+
+xit=1
+trap '
+ if [ -n "$umount" ]
+ then
+ umount "$umount"
+ fi
+ exit $xit
+' 0
+
+while [ -z "$goconfigure" ]
+do
+ yet="`dpkg --yet-to-unpack`"
+ if [ -z "$yet" ]
+ then
+ echo '
+All packages unpacked, going on to configure them.
+'
+ goconfigure=1
+ continue
+ fi
+ echo '
+Packages yet to be unpacked:'
+ echo "$yet"
+ dpkg-split -l
+
+ echo -n '
+Insert a disk containing *.deb files, or type q to quit. '
+ read response
+ case "$response" in
+ [Qq] | [Qq][Uu][Ii][Tt] )
+ goconfigure=1
+ ;;
+ * )
+ umount="$defaultfloppy"
+ if mount -rt "$defaultfstype" "$defaultfloppy" "$mountpoint"
+ then
+ echo
+ dpkg --unpack -GROEB "$mountpoint" || true
+ umount "$defaultfloppy"
+ fi
+ umount=""
+ ;;
+ esac
+done
+
+if ! [ -z "$yet" ]
+then
+ response=""
+ while [ -z "$response" ]
+ do
+ echo -n '
+Not all the packages have yet been unpacked. Shall I try to
+proceed with configuration anyay ? If any of the packages which
+have been unpacked so far depend on any that haven'\''t then you'\''ll
+see error messages; on the other hand if you say no those packages that
+could have been configured will not be. (y/n) '
+ read response
+ case "$response" in
+ [Nn]* )
+ echo '
+OK. Be sure to come back to this, because unpacked-but-not-configured
+packages are not in general useable. Alternatively, use the Configure
+option on the dselect menu.
+'
+ exit 1
+ ;;
+ [Yy]* )
+ ;;
+ * )
+ response=""
+ ;;
+ esac
+ done
+fi
+
+dpkg --configure --pending
+
+xit=0