[Lunar-commits] <moonbase> bzr: add bzr:// to list of supported protocols

Zachary McGrew zmcgrew at lunar-linux.org
Fri Oct 14 10:04:36 CEST 2011


commit 89b08cbf8883aa21c16f7c6598d707218e36b38d
Author: Zachary McGrew <zmcgrew at lunar-linux.org>
Date:   Fri Oct 14 01:04:36 2011 -0700

    bzr: add bzr:// to list of supported protocols
    
    Also change checkouts to lightweight checkouts, since we don't need the entire revision history, just the current source to build
---
 devel/bzr/plugin.d/download-bzr.plugin |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/devel/bzr/plugin.d/download-bzr.plugin b/devel/bzr/plugin.d/download-bzr.plugin
index 8477298..1612e60 100644
--- a/devel/bzr/plugin.d/download-bzr.plugin
+++ b/devel/bzr/plugin.d/download-bzr.plugin
@@ -15,10 +15,11 @@
 # bzr+http:// (will be transformed to http://)
 # bzr+https:// (will be transformed to https://)
 # bzr+ssh://
+# bzr://
 
 plugin_source_download_bzr() {
   # check if we can handle this URL format
-  if [ "${1:0:11}" != "bzr+http://" -a "${1:0:12}" != "bzr+https://" -a "${1:0:10}" != "bzr+ssh://" ] ; then
+  if [ "${1:0:6}" != "bzr://" -a "${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($@)"
@@ -66,7 +67,7 @@ plugin_source_download_bzr() {
       cd ${CD}
     else
       verbose_msg "[${TRY}] bzr co $BZR_URL $SBASE"
-      bzr co $BZR_URL $SBASE && GOT_BZR="yes"
+      bzr co --lightweight $BZR_URL $SBASE && GOT_BZR="yes"
     fi
 
     if [ "$?" == "0" ] ; then


More information about the Lunar-commits mailing list