[SCM] pkg-kde repository scripts branch, master, updated. e635c7171ed19d4b33d8634d6ff5db3c30ac638e

Modestas Vainius modax at alioth.debian.org
Thu Feb 25 00:58:20 UTC 2010


The following commit has been merged in the master branch:
commit e635c7171ed19d4b33d8634d6ff5db3c30ac638e
Author: Modestas Vainius <modestas at vainius.eu>
Date:   Thu Feb 25 02:58:01 2010 +0200

    Fix reprepro output parsing when source version != binary version.
---
 reprepro-html-index |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/reprepro-html-index b/reprepro-html-index
index d16cae7..47b3d62 100755
--- a/reprepro-html-index
+++ b/reprepro-html-index
@@ -211,7 +211,11 @@ sub read_all_packages {
 	my %bysource;
 
 	while (my $str = $reprepro->readline()) {
-		my $pkg = KdeTrunk::Pkg->parse($str, qw{(?<arch>\S+) (?<source>\S+)? (?<path>\S+)?});
+		my $pkg = KdeTrunk::Pkg->parse($str,qw{
+			(?<arch>\S+)
+			(?:(?<source>\S+)(?:\s+\((?<version>\S+)\))?)?
+			(?<path>\S+)?
+		});
 		if ($pkg) {
 			$pkgs{$pkg->get_id()} = $pkg;
 			push @{$bysource{$pkg->get_source()}}, $pkg if $pkg->get_source();

-- 
pkg-kde repository scripts



More information about the pkg-kde-commits mailing list