Your message dated Mon, 23 Jan 2017 20:55:45 +0100
with message-id <[email protected]>
and subject line New archive sections 'javascript' and 'rust' added
has caused the Debian Bug report #753480,
regarding ftp.debian.org: Please add a section for JavaScript packages
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
753480: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=753480
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ftp.debian.org
Severity: wishlist

Hi,

currenlty there are around 350 packages provinding JavaScript libraries
and the number is quickly increasing whit the arrival of Node.js
server-side modules.

Most of these packages are now in section "web", but not all of them are
really related to web, or in the more generic "misc" section.

After discussioning this in JavaScript team, we ended up that it would be 
better 
to request a new section "javascript" where put these packages.

The regex to add existing packages is "[node|libjs]-.*"

--- End Message ---
--- Begin Message ---
The sections 'javascript' and 'rust' (and their 'cont rib' and 'non-free'
equivalents[1]) have been added to the archive.

I also updated the sections for existing overrides as requested

  node-%, libjs-%, javascript-%      -> javascript
  rustc, cargo, libstd-rust%, rust-% -> rust

via the attached SQL query (not nice, but it worked).

  [1] Which reminded me that this really should be fixed...
BEGIN;

INSERT INTO section (section)
VALUES
  ('javascript'), ('contrib/javascript'), ('non-free/javascript'),
  ('rust'), ('contrib/rust'), ('non-free/rust');

UPDATE override o
SET section = (SELECT s.id FROM section s WHERE s.section = CASE c.name WHEN 
'main' THEN 'javascript' ELSE CONCAT(c.name, '/javascript') END)
FROM component c
WHERE o.component = c.id
AND package LIKE 'node-%' OR package LIKE 'libjs-%' OR package LIKE 
'javascript-%'
AND o.suite = (SELECT id FROM suite WHERE suite_name = 'unstable')
RETURNING
  o.package,
  (SELECT s.section FROM section s WHERE s.id = o.section) AS new_section
;

UPDATE override o
SET section = (SELECT s.id FROM section s WHERE s.section = CASE c.name WHEN 
'main' THEN 'rust' ELSE CONCAT(c.name, '/rust') END)
FROM component c
WHERE o.component = c.id
AND package IN ('rustc', 'cargo') OR package LIKE 'libstd-rust%' OR package 
LIKE 'rust-%'
AND o.suite = (SELECT id FROM suite WHERE suite_name = 'unstable')
RETURNING
  o.package,
  (SELECT s.section FROM section s WHERE s.id = o.section) AS new_section
;

ROLLBACK;
-- COMMIT;

--- End Message ---

Reply via email to