]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
spec: Delete .git after applying patches
authorCole Robinson <crobinso@redhat.com>
Tue, 6 Oct 2015 19:54:47 +0000 (15:54 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 6 Oct 2015 19:54:47 +0000 (15:54 -0400)
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

index ed401f7572548bc942776a8842fc25e9f3bbefef..9dff994f25546891f69ea83f8f3d146dfbe73ed2 100644 (file)
@@ -1256,6 +1256,7 @@ if [ $COUNT -gt 0 ]; then
 fi
 echo "Applied $COUNT patches"
 rm -f $PATCHLIST
+rm -rf .git
 
 %build
 %if ! %{with_xen}