diff --git a/guix/gnu-maintenance.scm b/guix/gnu-maintenance.scm
index d8b6af9d316ae2f5a64b47f28495f5603dbc09c0..7b608daea2793de2205087aaa20d25512174e682 100644
--- a/guix/gnu-maintenance.scm
+++ b/guix/gnu-maintenance.scm
@@ -176,7 +176,7 @@ (define (mirror-type url)
 
        (let ((url  (and=> (package-source package) origin-uri))
              (name (package-name package)))
-         (case (and url (mirror-type url))
+         (case (and (string? url) (mirror-type url))
            ((gnu) #t)
            ((non-gnu) #f)
            (else