ppisar pushed to perl-Test-Run-CmdLine (master). "Improve prep code (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon May 11 08:10:35 UTC 2015


From b60e30ddc77d451ae57a7723aaff8c804dee174c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
Date: Mon, 11 May 2015 09:55:43 +0200
Subject: Improve prep code

rm(1) is interactive on read-only files if terminal is available.

diff --git a/perl-Test-Run-CmdLine.spec b/perl-Test-Run-CmdLine.spec
index 657e622..e2be59e 100644
--- a/perl-Test-Run-CmdLine.spec
+++ b/perl-Test-Run-CmdLine.spec
@@ -11,6 +11,7 @@ URL:            http://search.cpan.org/dist/Test-Run-CmdLine/
 Source0:        http://www.cpan.org/authors/id/S/SH/SHLOMIF/Test-Run-CmdLine-%{version}.tar.gz
 BuildArch:      noarch
 BuildRequires:  perl
+BuildRequires:  perl(Config)
 BuildRequires:  perl(File::Spec)
 BuildRequires:  perl(lib)
 # Prefer Module::Build over ExtUtils::Maker because the Test::Run::Builder
@@ -38,7 +39,6 @@ BuildRequires:  perl(Test::Trap)
 BuildRequires:  perl(UNIVERSAL::require)
 BuildRequires:  perl(YAML::XS)
 # Test:
-BuildRequires:  perl(Config)
 BuildRequires:  perl(Cwd)
 BuildRequires:  perl(File::Path)
 BuildRequires:  perl(List::Util)
@@ -64,7 +64,7 @@ command line facilities similar to Test::Harness' prove tool.
 %setup -q -n Test-Run-CmdLine-%{version}
 find lib -type f -exec chmod 0644 {} +
 # Remove unwanted files
-rm examples/eumm-and-test-manifest/MyModule/.cvsignore
+rm --interactive=never examples/eumm-and-test-manifest/MyModule/.cvsignore
 sed -i -e '/^examples\/eumm-and-test-manifest\/MyModule\/.cvsignore/d' MANIFEST
 # Correct shellbangs in examples
 sed -i -e \
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-Test-Run-CmdLine.git/commit/?h=master&id=b60e30ddc77d451ae57a7723aaff8c804dee174c


More information about the scm-commits mailing list