+2008-02-29 Frank Lichtenheld <djpig@debian.org>
+
+ * scripts/Dpkg/Changelog/Debian.pm (parse):
+ One patch against the old parser that allowed
+ chars '+' and '.' in distribution names was
+ not forward ported into the new parser. Do
+ this now.
+ * scripts/t/600_Dpkg_Changelog/regression:
+ Add testcase for this regression.
+
+
2008-02-22 Raphael Hertzog <hertzog@debian.org>
Mike Frysinger <vapier@gentoo.org>
.changes files. Information will be available in Checksums-Sha{1,256}
fields. .changes format version increased to 1.8.
* Link dselect against libncursesw. Closes: #466321
+ * Forward port a patch from the old changelog parser to the new
+ one that got lost during the transition. '+' and '.' can now
+ be used in distribution names yet again. Closes: XXX
[ Updated dpkg translations ]
* Korean (Changwoo Ryu).
* Polish (Robert Luberda).
* Romanian (Eddy Petrișor).
- -- Eddy Petrișor <eddy.petrisor@gmail.com> Sat, 09 Feb 2008 13:22:38 +0200
+ -- Frank Lichtenheld <djpig@debian.org> Fri, 29 Feb 2008 18:34:54 +0100
dpkg (1.14.16.6) unstable; urgency=medium
while (<$fh>) {
s/\s*\n$//;
# printf(STDERR "%-39.39s %-39.39s\n",$expect,$_);
- if (m/^(\w[-+0-9a-z.]*) \(([^\(\) \t]+)\)((\s+[-0-9a-z]+)+)\;/i) {
+ my $name_chars = qr/[-+0-9a-z.]/;
+ if (m/^(\w$name_chars*) \(([^\(\) \t]+)\)((\s+$name_chars+)+)\;/i) {
unless ($expect eq 'first heading'
|| $expect eq 'next heading or eof') {
$entry->{ERROR} = [ $file, $NR,
use File::Basename;
BEGIN {
- my $no_examples = 3;
+ my $no_examples = 4;
my $no_err_examples = 1;
my $no_tests = $no_examples * 4
+ $no_err_examples * 2
ok( !defined($test), "fatal parse errors lead to init() returning undef");
my $save_data;
-foreach my $file ("$srcdir/countme", "$srcdir/shadow", "$srcdir/fields") {
+foreach my $file ("$srcdir/countme", "$srcdir/shadow", "$srcdir/fields",
+ "$srcdir/regressions") {
my $changes = Dpkg::Changelog::Debian->init( { infile => $file,
quiet => 1 } );
# 'version numbers in module and Changes match' );
# }
- my $oldest_version = $data[-1]->{Version};
- $str = $changes->dpkg_str({ since => $oldest_version });
+ SKIP: {
+ skip("avoid spurios warning with only one entry", 2)
+ if @data == 1;
-# is( $str, `dpkg-parsechangelog -v$oldest_version -l$file`,
-# 'Output of dpkg_str equal to output of dpkg-parsechangelog' )
-# or diag("oldest_version=$oldest_version");
+ my $oldest_version = $data[-1]->{Version};
+ $str = $changes->dpkg_str({ since => $oldest_version });
- $str = $changes->rfc822_str();
+ $str = $changes->rfc822_str();
- ok( 1 );
+ ok( 1 );
- $str = $changes->rfc822_str({ since => $oldest_version });
+ $str = $changes->rfc822_str({ since => $oldest_version });
- ok( 1 );
+ ok( 1 );
+ }
}
open CHANGES, '<', "$srcdir/countme";
--- /dev/null
+re-gressions++1.2.3 (1.5-1) allowed.chars-567+890; urgency=low
+
+ * Test allowed chars in package name and distribution name.
+ (Closes: #361171)
+
+ -- Frank Lichtenheld <frank@lichtenheld.de> Thu, 01 Jan 1970 00:00:00 +0000