[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#609334: 50mirror treats bluray as if CD size

Package: apt-setup
Version: 1:0.52
Severity: normal
Tag: patch

This is one of the problems sledge alluded to in

When installing from bluray, the cd_type is "full_cd",
and so the user will be prompted at high priority using incorrect text
from apt-setup/use/cd: "You are installing from a CD, which contains a
limited selection of packages."

The bluray should be given its own cd_type, and there would be little or
no need to use a mirror in this case, or prompt for more discs. Note
that once the cd_type is changed, 41cdset will begin doing the right
thing for bluray, with no code changes, by not prompting for additional

The attached patch is, obviously, untested (but fairly clearly
correct), and uses cd_type of "bluray".

-- System Information:
Debian Release: 6.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

see shy jo
Index: generators/50mirror
--- generators/50mirror	(revision 66209)
+++ generators/50mirror	(working copy)
@@ -80,6 +80,10 @@
+	    bluray*)
+		use_mirror=false
+		use_prio=low
+		;;
Index: generators/41cdset
--- generators/41cdset	(revision 66209)
+++ generators/41cdset	(working copy)
@@ -38,6 +38,7 @@
 # multi-arch CDs have cd_type 'non_complete'
 # KDE/Xfce CDs and multi-arch DVDs have '/single' postfix in cd_type
+# bluray CDs have cd_type 'bluray'
 cd_type=$(cat /cdrom/.disk/cd_type)
 if [ "$cd_type" != full_cd ] && [ "$cd_type" != dvd ]; then
 	exit 0

Attachment: signature.asc
Description: Digital signature

Reply to: