Re: Bugs.d.o breakage

Ondřej Surý <[email protected]>
Newsgroups gmane.linux.debian.devel.debbugs
Message-ID <BANLkTimWqm81-J7vA2MW3UzTMsLG=7QC6V21ErvLsdxUop0Bfw@mail.gmail.com>
Hi,

there's even more breakage:

I think I know why bugscan is (still) broken.

Debbugs::Config strong_severities is probably nested array or
something like that. If you add print "@priorities\n"; to end of
bugcfg.pm it prints: ARRAY(0x26fc970) instead of list of priorities,
then the loop checking if the bug priority is RC in scanspooldir fails
to compare ARRAY(0x26fc970) with 'grave' or 'serious' and skip the bug
altogether.

--- /srv/bugs.debian.org/bugscan/bugcfg.pm	2011-06-15 18:15:12.000000000 +0000
+++ bugcfg.pm	2011-06-16 10:42:46.000000000 +0000
@@ -24,7 +24,8 @@ $debian_ftproot = "/org/bugs.debian.org/
 # alpha excluded to RM request
 our @architectures		= ( "i386", "amd64", "sparc", "powerpc", "armel",
"hppa", "ia64", "mips", "mipsel", "s390" );
 our @sections		= ( "main", "contrib", "non-free" );
-our @priorities		= $config{strong_severities};
+my $strong_severities   = $config{strong_severities};
+our @priorities		= @$strong_severities;
 our @skiptags		= ( );

 1;

Somebody with more perl knowledge than me could rewrite it much nicer,
but this just works...  (and @$config{strong_severities} complain).

Also hppa is not in the main archive anymore...

O.
-- 
Ondřej Surý <[email protected]>
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.