From patchwork Tue Oct 6 20:06:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 54563 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id DC53B22F05 for ; Tue, 6 Oct 2015 20:08:49 +0000 (UTC) Received: by lacwq3 with SMTP id wq3sf3111143lac.3 for ; Tue, 06 Oct 2015 13:08:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=DW9gl9+Ku3t5GTFes82dQlM/+mx5cMA7mB17yx2pwck=; b=SqM7cNFeNwlX5jrhJ782d3Dtbu7Pq6lGy3CD9xVSV4oJ7GrZIxgRWaHgdOQzFnjXCM J8fgu8zAHtVd1MexUciAV+zkR+FlEr9k76h/Q4Yr/IvQk+zr/F8OLsSQAq3qtu5JmYYY vQvI819c6usJExZBAFK4yvJg/II1omETm1pV3HK8NG8WiriyJEX/zrRng1NM8vl8OJa7 i4AEDphHFajRaIjJJSe29xwX+/uHizD+vrLLcejLeZEMhHxRXMqwTWvZPk4GR4uz4fh1 FUkwzv3m0pLTd9pV+WD40pcQVANjAl4PYCM88VaDlhYp/mM4Hj64r4mwU557qW/uABey yGAg== X-Gm-Message-State: ALoCoQlKYfTaeXWyyn6Du25ntmjd3moYEI+r7PDHmKLzxflmlTFJZQPhdHQyDAQIKX2PoE0RIWRO X-Received: by 10.180.81.165 with SMTP id b5mr4005007wiy.1.1444162128827; Tue, 06 Oct 2015 13:08:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.19.223 with SMTP id 92ls658710lft.101.gmail; Tue, 06 Oct 2015 13:08:48 -0700 (PDT) X-Received: by 10.112.62.137 with SMTP id y9mr15242310lbr.63.1444162128523; Tue, 06 Oct 2015 13:08:48 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id m1si22256862lfg.133.2015.10.06.13.08.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Oct 2015 13:08:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by lacdq7 with SMTP id dq7so8529596lac.2 for ; Tue, 06 Oct 2015 13:08:48 -0700 (PDT) X-Received: by 10.112.146.104 with SMTP id tb8mr15936758lbb.35.1444162128364; Tue, 06 Oct 2015 13:08:48 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp2046206lbq; Tue, 6 Oct 2015 13:08:47 -0700 (PDT) X-Received: by 10.194.58.177 with SMTP id s17mr46013790wjq.102.1444162127737; Tue, 06 Oct 2015 13:08:47 -0700 (PDT) Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com. [209.132.183.39]) by mx.google.com with ESMTPS id ew16si40473818wjc.22.2015.10.06.13.08.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Oct 2015 13:08:47 -0700 (PDT) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.39 as permitted sender) client-ip=209.132.183.39; Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t96K69vj010605; Tue, 6 Oct 2015 16:06:10 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id t96K68fH004820 for ; Tue, 6 Oct 2015 16:06:08 -0400 Received: from colepc.redhat.com (ovpn-113-60.phx2.redhat.com [10.3.113.60]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t96K67WO032525; Tue, 6 Oct 2015 16:06:08 -0400 From: Cole Robinson To: libvirt-list@redhat.com Date: Tue, 6 Oct 2015 16:06:05 -0400 Message-Id: <62ff210e5d6542bda3f25ed5e96c5088a840ce1b.1444161965.git.crobinso@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] spec: Delete .git after applying patches X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: crobinso@redhat.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 I'm hitting this little annoyance in fedora's package repo: $ fedpkg prep Downloading libvirt-1.2.20.tar.gz ... + /usr/bin/gzip -dc /home/crobinso/src/fedora/libvirt/libvirt-1.2.20.tar.gz $ git clean -xdf Removing libvirt-1.2.20.tar.gz Skipping repository libvirt-1.2.20/ We git-ify the libvirt directory as part of applying patches in the spec file, but 'git clean' will ignore subfolders that appear to be standalone git repos. Let's just delete the .git directory after we're done with it. --- libvirt.spec.in | 1 + 1 file changed, 1 insertion(+) diff --git a/libvirt.spec.in b/libvirt.spec.in index ed401f7..9dff994 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1256,6 +1256,7 @@ if [ $COUNT -gt 0 ]; then fi echo "Applied $COUNT patches" rm -f $PATCHLIST +rm -rf .git %build %if ! %{with_xen}