[Lunar-commits] <moonbase> bzr: fixed some problems in the bzr download plugin

Terry Chan tchan at lunar-linux.org
Mon Oct 27 16:36:33 CET 2008


commit 5393a19025355f9518dde0ff70bebff14341a506
Author: Terry Chan <tchan at lunar-linux.org>
Date:   Mon Oct 27 10:36:33 2008 -0500

    bzr: fixed some problems in the bzr download plugin
---
 devel/bzr/plugin.d/download-bzr.plugin |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/devel/bzr/plugin.d/download-bzr.plugin b/devel/bzr/plugin.d/download-bzr.plugin
index b41bb0c..384dbdb 100644
--- a/devel/bzr/plugin.d/download-bzr.plugin
+++ b/devel/bzr/plugin.d/download-bzr.plugin
@@ -12,14 +12,13 @@
 ############################################################
 
 # valid BZR urls are:
-# bzr://
 # bzr+http:// (will be transformed to http://)
 # bzr+https:// (will be transformed to https://)
 # bzr+ssh://
 
 plugin_source_download_bzr() {
   # check if we can handle this URL format
-  if [ "${1:0:6}" != "bzr://" -a "${1:0:11}" != "bzr+http://" -a "${1:0:12}" != "bzr+https://" -a "${1:0:10}" != "bzr+ssh://" ] ; then
+  if [ "${1:0:11}" != "bzr+http://" -a "${1:0:12}" != "bzr+https://" -a "${1:0:10}" != "bzr+ssh://" ] ; then
     return 2
   fi
   debug_msg "plugin_source_needrefresh_bzr($@)"
@@ -112,7 +111,7 @@ plugin_source_needrefresh_bzr() {
       return 1
     fi
   else
-    # always return true if threshhold is zero
+    # always return true if threshold is zero
     return 0
   fi
 }


More information about the Lunar-commits mailing list