From aaa119565207a6ee2f5cddb2730e51e2af49a21e Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 4 Feb 2008 16:02:21 +0000 Subject: do set _tmppath --- t/02create_pkgs.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/02create_pkgs.t b/t/02create_pkgs.t index f4c9941a..d9411b3c 100644 --- a/t/02create_pkgs.t +++ b/t/02create_pkgs.t @@ -4,6 +4,7 @@ use strict; use lib '.', 't'; use helper; use Test::More 'no_plan'; +use Cwd; chdir 't' if -d 't'; system('rm -rf tmp media'); @@ -61,7 +62,8 @@ sub genhdlist_std { sub rpmbuild { my ($spec, $o_medium_name) = @_; - system_("rpmbuild --quiet --define '_topdir tmp' -bb --clean --nodeps $spec"); + my $dir = getcwd(); + system_("rpmbuild --quiet --define '_topdir $dir/tmp' --define '_tmppath $dir/tmp' -bb --clean --nodeps $spec"); my ($name) = $spec =~ m!([^/]*)\.spec$!; -- cgit v1.2.1