Re: [jenkins-ci PATCH] jobs: ensure rpmbuild purges $RPM-ROOT/BUILD/$PACKAGE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2018-08-09 at 12:02 +0100, Daniel P. Berrangé wrote:
> When using 'rpmbuild --rebuild',  $RPM-ROOT/BUILD/$PACKAGE is

s/  / /

> automatically deleted on completion, but when using 'rpmbuild --ta' it

s/--ta/-ta/

> is not deleted. We need to pass --clean to get the desired behaviour.
> 
> This was not a visible problem in the past because "git clean -fdx"
> would purge the directory, but since we use %autosetup now the directory

s/use %autosetup now/use %autosetup for libvirt now/

> will contain a git repo which causes "git clean" to skip deletion:
> 
>   $ su - jenkins
>   $ cd libvirt-master
>   $ git clean -fdx
>   Skipping repository build/rpmbuild/BUILD/libvirt-4.7.0
> 
> Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
> ---
>  jobs/autotools.yaml        | 2 +-
>  jobs/perl-modulebuild.yaml | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Andrea Bolognani <abologna@xxxxxxxxxx>

-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux