[Reproducible-commits] [blog] 01/01: fix logic

Mattia Rizzolo mattia at debian.org
Sun May 1 18:10:22 UTC 2016


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to branch master
in repository blog.

commit 0b2ce223604a75ce65dd61f9bce4d3c55f1a9e7f
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Sun May 1 18:10:18 2016 +0000

    fix logic
---
 libdir/IkiWiki/Plugin/DebianMacros.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libdir/IkiWiki/Plugin/DebianMacros.pm b/libdir/IkiWiki/Plugin/DebianMacros.pm
index 99f570b..ca7134e 100644
--- a/libdir/IkiWiki/Plugin/DebianMacros.pm
+++ b/libdir/IkiWiki/Plugin/DebianMacros.pm
@@ -26,7 +26,7 @@ sub pkg {
 
 sub bug_out {
     my ($bug, $title) = @_;
-    if ($bug =~ /\d+/) {
+    if (not $bug =~ /\d+/) {
         error("The bug $bug is not a valid bug format.");
     }
     return "[$title](https://bugs.debian.org/$bug)";

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/blog.git



More information about the Reproducible-commits mailing list