Bug#2114: dselect HD method fails without redundant Packages files
Package: dpkg
Version: 1.0.8
(Well, that's 1.0.8 according to the package, 1.0.7 according to dpkg
--version.)
I selected the hard disc access method, entered `none' for
distribution top level,
/home/ftp/pub/debian/debian-1.0/binary
for main binary directory and `none' for everything else. I then told
dselect to update the list of available packages. However, the hard
disc access method then tries to read a file called "" for each of the
packages files I refused to supply.
----------------------------------------
Uncompressing /home/ftp/pub/debian/debian-1.0/binary/Packages.gz ... done.
Updating available packages info, using packages-main.
Information about 324 package(s) was updated.
Updating available packages info, using .
dpkg: failed to open package info file `' for reading: No such file or directory
update available list script returned error exit status 1.
Press RETURN to continue.
----------------------------------------
I suggest a patch to /usr/lib/dpkg/methods/disk/update:
----------------------------------------
*** update.orig Wed Jan 10 20:25:43 1996
--- update Wed Jan 10 20:26:47 1996
***************
*** 42,58 ****
'' ) packagesfile="$this_packages" ;;
* ) packagesfile="$p_mountpoint/$this_packages" ;;
esac
! case "$packagesfile" in
! *.gz | *.Z | *.GZ | *.z)
! echo -n "Uncompressing $packagesfile ... "
! zcat <"$packagesfile" >packages-$f
! echo done.
! dpkg --merge-avail packages-$f
! ;;
! *)
! dpkg --merge-avail "$packagesfile"
! ;;
! esac
done
echo -n 'Update OK. Hit RETURN. '
--- 42,61 ----
'' ) packagesfile="$this_packages" ;;
* ) packagesfile="$p_mountpoint/$this_packages" ;;
esac
! if [ "$packagesfile" != "" ]
! then
! case "$packagesfile" in
! *.gz | *.Z | *.GZ | *.z)
! echo -n "Uncompressing $packagesfile ... "
! zcat <"$packagesfile" >packages-$f
! echo done.
! dpkg --merge-avail packages-$f
! ;;
! *)
! dpkg --merge-avail "$packagesfile"
! ;;
! esac
! fi
done
echo -n 'Update OK. Hit RETURN. '
----------------------------------------
--
Richard Kettlewell richard@uk.geeks.org http://www.elmail.co.uk/staff/richard/
Reply to: