diff --git a/templates/etc/pbuilder/debian.erb b/templates/etc/pbuilder/debian.erb
index 9ddd89ee1c51dc52014041a11e130e4fd68ba4bb..832e2da362796e00b65f441e66cf490427228caf 100644
--- a/templates/etc/pbuilder/debian.erb
+++ b/templates/etc/pbuilder/debian.erb
@@ -26,7 +26,9 @@
 
   if (@include_backports) then
     othermirrors.push(repos['bp'])
-    othermirrors.push(repos['stan-bp'])
+    if (include_stanford_repos) then
+      othermirrors.push(repos['stan-bp'])
+    end
   end
 
   # Join all the other mirros