From patchwork Fri Oct 18 20:52:43 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: 21173 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 403482448B for ; Fri, 18 Oct 2013 20:53:35 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id c14sf9231908vea.6 for ; Fri, 18 Oct 2013 13:53:34 -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=2u/He/4TfhKTlVj/A7JVw+2xcoq5m5M3u9Anq/f5joE=; b=beNAZBL0A5b4bP4Uv8t6a9gKROFXw1dSQBpE18ygCvHPQP34t/S3uHR5/exMhZas7/ r5/9gwGkvE7XjdvIJY5UbU+9qa1WP1HZTB3BbKt+bc7N85HqjRpMvR/DcWGvjChj7Kml 0SZNFBbsF7cdrNL0M0sSDee4+l8JhJIQ548M7zhzsB5Z4EvHcsBCXOVsHcQkRRvWDhl9 VXbNVQsAq3biDFOZ2w3tMaWb2nzyHiucfTBvsX+U6On6yywO8QATgLJCLDN4eSjq7B6W Z2ZSFCJIUafO/uYbi01hmkmrAp2RcBs1P7dEJRCRQgsideRyHDckauesYkYNl9QBOfrQ fHlA== X-Received: by 10.236.220.39 with SMTP id n37mr3999107yhp.15.1382129614870; Fri, 18 Oct 2013 13:53:34 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.119.166 with SMTP id kv6ls1485540qeb.10.gmail; Fri, 18 Oct 2013 13:53:34 -0700 (PDT) X-Received: by 10.52.164.102 with SMTP id yp6mr3001009vdb.14.1382129614734; Fri, 18 Oct 2013 13:53:34 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id mq14si673075vcb.56.2013.10.18.13.53.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Oct 2013 13:53:34 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id id10so690778vcb.40 for ; Fri, 18 Oct 2013 13:53:34 -0700 (PDT) X-Gm-Message-State: ALoCoQmrPVBFX0npSxSEXj5rBbKr6+DwGs2Ijwq3DGCmkGtDc9bHpy4qN6uNRfVdLeyebbCvcYdw X-Received: by 10.58.207.76 with SMTP id lu12mr208938vec.30.1382129614619; Fri, 18 Oct 2013 13:53:34 -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 u4csp63320vcz; Fri, 18 Oct 2013 13:53:34 -0700 (PDT) X-Received: by 10.42.82.196 with SMTP id e4mr1966843icl.58.1382129613807; Fri, 18 Oct 2013 13:53:33 -0700 (PDT) Received: from mail-ie0-f178.google.com (mail-ie0-f178.google.com [209.85.223.178]) by mx.google.com with ESMTPS id d9si3328033icq.133.2013.10.18.13.53.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Oct 2013 13:53:33 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.223.178 is neither permitted nor denied by best guess record for domain of ryan.arnold@linaro.org) client-ip=209.85.223.178; Received: by mail-ie0-f178.google.com with SMTP id to1so10026827ieb.9 for ; Fri, 18 Oct 2013 13:53:33 -0700 (PDT) X-Received: by 10.50.6.106 with SMTP id z10mr923718igz.9.1382129613284; Fri, 18 Oct 2013 13:53:33 -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.32 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Fri, 18 Oct 2013 13:53:32 -0700 (PDT) From: "Ryan S. Arnold" To: Rob Savoye Cc: patches@linaro.org, "Ryan S. Arnold" Subject: [PATCH][Cbuilv2/get_source 01/17] lib/make.sh: Don't continue with build if source isn't found. Date: Fri, 18 Oct 2013 15:52:43 -0500 Message-Id: <1382129579-5777-2-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.220.181 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" --- lib/make.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/make.sh b/lib/make.sh index 2fd5dd4..814eaf8 100755 --- a/lib/make.sh +++ b/lib/make.sh @@ -102,6 +102,10 @@ build() local file="`echo $1 | sed -e 's:\.tar.*::'`" local gitinfo="`get_source $1`" + if test -z "${gitinfo}"; then + error "No matching source found for \"$1\"." + return 1 + fi local url="`echo ${gitinfo} | cut -d ' ' -f 1`" if test `echo ${gitinfo} | wc -w` -gt 1; then local branch="/`echo ${gitinfo} | cut -d ' ' -f 2`"