]> git.madduck.net Git - code/myrepos.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Fix display of trust errors.
authorJoey Hess <joey@kitenet.net>
Thu, 22 Dec 2011 15:52:33 +0000 (11:52 -0400)
committerJoey Hess <joey@kitenet.net>
Thu, 22 Dec 2011 15:52:33 +0000 (11:52 -0400)
debian/changelog
mr

index d47762515b3044fd705f972cca846c052cfd8244..513b47474509c7a76a570fdd6c3feb06383d071c 100644 (file)
@@ -1,3 +1,9 @@
+mr (1.10) UNRELEASED; urgency=low
+
+  * Fix display of trust errors.
+
+ -- Joey Hess <joeyh@debian.org>  Thu, 22 Dec 2011 11:52:19 -0400
+
 mr (1.09) unstable; urgency=low
 
   * Remove dir_test hack and add a way for vcs tests to run perl code,
diff --git a/mr b/mr
index 262fab59519a63a20f4700271ccb455d74fc6acf..bcab403d27c29d1231f5961e72ff1154c96e7f0a 100755 (executable)
--- a/mr
+++ b/mr
@@ -1284,15 +1284,14 @@ sub loadconfig {
        };
        my $trusterror = sub {
                my $msg=shift;
-               my ($err, $file, $lineno, $url)=@_;
        
                if (defined $bootstrap_url) {
-                       die "mr: $err in untrusted $bootstrap_url line $lineno\n".
+                       die "mr: $msg in untrusted $bootstrap_url line $lineno\n".
                                "(To trust this url, --trust-all can be used; but please use caution;\n".
                                "this can allow arbitrary code execution!)\n";
                }
                else {
-                       die "mr: $err in untrusted $file line $lineno\n".
+                       die "mr: $msg in untrusted $f line $lineno\n".
                                "(To trust this file, list it in ~/.mrtrust.)\n";
                }
        };