[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.2.3-12-ga2fb940



The following commit has been merged in the master branch:
commit cabc5cdae472cb3cb5b053f756d8bc7c758eec22
Author: Raphael Geissert <atomo64@gmail.com>
Date:   Mon Feb 9 21:58:45 2009 +0000

    Correctly handle epoched packages in tests

diff --git a/t/runtests b/t/runtests
index 29bb372..3c0f4bb 100755
--- a/t/runtests
+++ b/t/runtests
@@ -297,6 +297,7 @@ sub test_package {
     unless ($is_native) {
 	for ($orig_version, $pkgdir, $targetdir) {
 	    s/-[^-]+$//;
+	    s/(-|^)(\d+):/$1/;
 	}
     }
 
@@ -341,8 +342,10 @@ sub test_package {
     print "building... ";
     runsystem("cd $RUNDIR/$pkgdir && $DPKG_BUILDPACKAGE >../build.$pkg 2>&1");
 
+    my $epochless_ver = $testdata->{version};
+    $epochless_ver =~ s/^(\d+)://;
     print "testing... ";
-    runsystem_ok("$LINTIAN $testdata->{options} $RUNDIR/$pkg\_$testdata->{version}*.changes".
+    runsystem_ok("$LINTIAN $testdata->{options} $RUNDIR/$pkg\_$epochless_ver*.changes".
 		 " 2>&1 | sort > $RUNDIR/tags.$pkg");
 
     # Run a sed-script if it exists, for tests that have slightly variable

-- 
Debian package checker


Reply to: