Bug#448521: apt-cdrom: 'ident' leaves CD mounted
Package: apt
Version: 0.7.8
Severity: wishlist
If I run 'apt-cdrom init' and the CD is not mounted before running the
command, the CD will be left mounted after the identification is
complete.
This is inconsistent with the way 'apt-cdrom add' works and even with how
apt works when installing packages from CD: in both cases the CD is left
unmounted.
However, I can also see that it is not desirable to have a CD unmounted
by 'apt-cdrom ident' if it _was_ mounted before.
My suggestion would be to test if the CD is already mounted at the
beginning and to unmount the CD before exiting only if it was not
mounted before.
Cheers,
FJP
-- Package-specific info:
-- (no /etc/apt/preferences present) --
-- (/etc/apt/sources.list present, but not submitted) --
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.24-rc1 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages apt depends on:
ii debian-archive-keyring 2007.07.31 GnuPG archive keys of the Debian a
ii libc6 2.6.1-6 GNU C Library: Shared libraries
ii libgcc1 1:4.2.2-3 GCC support library
ii libstdc++6 4.2.2-3 The GNU Standard C++ Library v3
apt recommends no packages.
-- no debconf information
Reply to: