From patchwork Fri Oct 18 20:52:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ryan S. Arnold" X-Patchwork-Id: 21181 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gg0-f200.google.com (mail-gg0-f200.google.com [209.85.161.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 78CC5202E6 for ; Fri, 18 Oct 2013 20:53:44 +0000 (UTC) Received: by mail-gg0-f200.google.com with SMTP id n5sf6399231ggj.11 for ; Fri, 18 Oct 2013 13:53:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=yopFc9n0i+NgBeOmstM7RqiCOFKH+SipRRhLnDo7PH0=; b=RTjgoc7VrxI5/8gJuZwVtn3qq7UI3i2FxoLiFQRD42mRF1kUv2nXCPMN6vRSAFO/0b QKXkj05An6K3zZvlYaK44D4KkzTB1VF+o1Gy2/VNIdiDKGaQoQEpgTPJFC36BrltXRiy jMipiVJErXKqRbZMrh/k9ZnFUm9cCbhL0IKDabP5n5Ps2378IXEo4lOWijuj9g4V7Wmh TD7M9PrRR9JYkH8pUPM/UxweILTbxQzeJwcdqirgDg662nfVODCw8fzTQIYUSW7Y/xPn GU6mSokoNN0xF/3tbys4kpOaxqeBtINjF+XiAS4j4pcnR27n3lABMD9VT9K79a1PRnAQ PPPw== X-Received: by 10.236.51.9 with SMTP id a9mr4134919yhc.41.1382129624275; Fri, 18 Oct 2013 13:53:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.95.161 with SMTP id dl1ls1499114qeb.60.gmail; Fri, 18 Oct 2013 13:53:44 -0700 (PDT) X-Received: by 10.58.136.231 with SMTP id qd7mr3402841veb.1.1382129624159; Fri, 18 Oct 2013 13:53:44 -0700 (PDT) Received: from mail-vb0-f46.google.com (mail-vb0-f46.google.com [209.85.212.46]) by mx.google.com with ESMTPS id wp10si663567vdb.136.2013.10.18.13.53.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Oct 2013 13:53:44 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.46 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.46; Received: by mail-vb0-f46.google.com with SMTP id 10so1792762vbe.19 for ; Fri, 18 Oct 2013 13:53:44 -0700 (PDT) X-Gm-Message-State: ALoCoQm83yoF9jehbHI9CFcyfU7/MDxgqeelvTWB8FtOvOdNveM98ekK/LRPxL833sz70D7ZCU3J X-Received: by 10.52.229.234 with SMTP id st10mr178562vdc.34.1382129624038; Fri, 18 Oct 2013 13:53:44 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp63335vcz; Fri, 18 Oct 2013 13:53:43 -0700 (PDT) X-Received: by 10.50.122.40 with SMTP id lp8mr1013723igb.24.1382129623314; Fri, 18 Oct 2013 13:53:43 -0700 (PDT) Received: from mail-ie0-f176.google.com (mail-ie0-f176.google.com [209.85.223.176]) by mx.google.com with ESMTPS id d13si8565090igz.22.2013.10.18.13.53.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Oct 2013 13:53:42 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.223.176 is neither permitted nor denied by best guess record for domain of ryan.arnold@linaro.org) client-ip=209.85.223.176; Received: by mail-ie0-f176.google.com with SMTP id u16so7231842iet.7 for ; Fri, 18 Oct 2013 13:53:42 -0700 (PDT) X-Received: by 10.50.57.44 with SMTP id f12mr867335igq.39.1382129622619; Fri, 18 Oct 2013 13:53:42 -0700 (PDT) Received: from badwing.hsd1.mn.comcast.net. (c-71-195-40-9.hsd1.mn.comcast.net. [71.195.40.9]) by mx.google.com with ESMTPSA id cl4sm14877361igc.1.2013.10.18.13.53.41 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Fri, 18 Oct 2013 13:53:42 -0700 (PDT) From: "Ryan S. Arnold" To: Rob Savoye Cc: patches@linaro.org, "Ryan S. Arnold" Subject: [PATCH][Cbuildv2/get_source 09/17] lib/common.sh: echo ${url} in leg that processes direct non .git repositories. Date: Fri, 18 Oct 2013 15:52:51 -0500 Message-Id: <1382129579-5777-10-git-send-email-ryan.arnold@linaro.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1382129579-5777-1-git-send-email-ryan.arnold@linaro.org> References: <1382129579-5777-1-git-send-email-ryan.arnold@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ryan.arnold@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.46 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: "Ryan S. Arnold" This support svn repository urls. Also add new testscase for git repositories that don't end in .git. Contrary to the comment added here, in a later patch in this set, .git@revision is supported. --- lib/common.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/common.sh b/lib/common.sh index 64d0a30..ff07d62 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -404,9 +404,13 @@ get_source() return 0 fi else - # TODO: Add a testcase for this leg? + # This leg captures direct urls that don't end in .git. This include + # svn directories and git repositories that don't end in .git. + # Unfortunately this means that @ isn't + # supported. if test `echo $1 | egrep -c "\.git"` -eq 0; then local url=$1 + echo "${url}" return 0 fi fi