Bug#783117: www.debian.org: Adding BD (Blue Disk) Support for Vendor List

Alexandre Delanoë <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Message-ID <20150422134642.30398.70552.reportbug__21772.6466864862$1429710693$gmane$org@equatux.org>
Package: www.debian.org
Severity: normal

Dear Maintainer,
according to discussion on debian-www@
Ref, Message-ID: <CAKTje6G1giuyZ9qBehbnVy5WXf54_+_ZTEh+bV6y09xvQ_fLbA@mail.gmail.com>

This patch adds support to wml page:
Cheers,
anoe


--- CD/vendors/vendors.CD.def	2011-07-10 19:51:52.000000000 +0200
+++ CD/vendors/vendors.CD.def_withDB	2015-04-22 15:38:18.715823054 +0200
@@ -11,6 +11,8 @@
 <gettext domain="vendors">email:</gettext>
 <gettext domain="vendors">CD Type:</gettext>
 <gettext domain="vendors">DVD Type:</gettext>
+<gettext domain="vendors">BD Type:</gettext>
+<gettext domain="vendors">USB Type:</gettext>
 <gettext domain="vendors">Architectures:</gettext>
 -->
 
@@ -25,7 +27,7 @@
     <tr>
       <th><gettext domain="vendors">Vendor</gettext></th>
       <th><gettext domain="vendors">Allows Contributions</gettext></th>
-      <th><gettext domain="vendors">CD/DVD</gettext></th>
+      <th><gettext domain="vendors">CD/DVD/BD/USB</gettext></th>
       <th><gettext domain="vendors">Architectures</gettext></th>
       <th><gettext domain="vendors">Ship International</gettext></th>
       <th><gettext domain="vendors">Contact</gettext></th>
@@ -46,6 +48,8 @@
   <preserve contacturl />
   <preserve cd />
   <preserve dvd />
+  <preserve bd />
+  <preserve usb />
   <set-var %attributes />
   <tr class="<get-var trclass />">
   <ifeq <get-var trclass /> "a" <set-var trclass="b" /> <set-var trclass="a" /> />
@@ -56,11 +60,18 @@
     # Vendor allows donations - "Yes" or "No"
     <td><contribution <get-var contribution />></td>
     ####################
-    # Vendor offers "CD", "DVD" or "CD+DVD"
+    # Vendor can offer "CD", "DVD", "CD+DVD", "DVD+USB", "CD+DVD+USB", "CD+USB", +BD
     <td>\
-      <ifeq <get-var cd /> "yes" "CD">\
-      <ifeq <get-var cd /> "yes" <ifeq <get-var dvd /> "yes" "+">>\
-      <ifeq <get-var dvd /> "yes" "DVD">\
+       <ifeq <get-var cd /> "yes" "CD">\
+       <ifeq <get-var cd /> "yes" <ifeq <get-var dvd /> "yes" "+">>\
+       <ifeq <get-var cd /> "yes" <ifeq <get-var dvd /> "no" <ifeq <get-var bd /> "yes" "+">>>\
+       <ifeq <get-var cd /> "yes" <ifeq <get-var dvd /> "no" <ifeq <get-var bd /> "no" <ifeq <get-var usb /> "yes" "+" >>>>\
+       <ifeq <get-var dvd /> "yes" "DVD">\
+       <ifeq <get-var dvd /> "yes" <ifeq <get-var bd /> "yes" "+">>\
+       <ifeq <get-var dvd /> "yes" <ifeq <get-var bd /> "no" <ifeq <get-var usb /> "yes" "+">>>\
+       <ifeq <get-var bd /> "yes" "DB">\
+       <ifeq <get-var bd /> "yes" <ifeq <get-var usb /> "yes" "+">>\
+       <ifeq <get-var usb /> "yes" "USB">\
     </td>
     <td><get-var architectures /></td>
     <td><ship <get-var ship />></td>
@@ -80,16 +91,18 @@
   # Ensure that the list is sorted:
   <ifeq <string-compare "<get-var name />" "<get-var prevname />" caseless="true" />
         "less"
-        <exit status="1" message="CD/DVD Vendor entries not sorted - '<get-var name />' should appear before '<get-var prevname />' in the list!" />
+        <exit status="1" message="CD/DVD/BD/USB Vendor entries not sorted - '<get-var name />' should appear before '<get-var prevname />' in the list!" />
   />
   ####################
   # Ensure that the entry is in the right country section
   <ifneq <get-var country /> <get-var code />
-    <exit status="1" message="CD/DVD Vendor '<get-var name />' should appear inside the country tag for country '<get-var country />', but it is inside that for '<get-var code />'!" />
+    <exit status="1" message="CD/DVD/BD/USB Vendor '<get-var name />' should appear inside the country tag for country '<get-var country />', but it is inside that for '<get-var code />'!" />
   />\
   <set-var prevname="<get-var name />" />
   <restore dvd />
   <restore cd />
+  <restore bd />
+  <restore usb />
   <restore contacturl />
   <restore ship />
   <restore contribution />
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.