aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-12-09 15:50:59 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-12-09 15:50:59 +0000
commit4f1e1255413c5282ef5f8562be611729a0ffeb70 (patch)
tree320b451d89c98d500314b562e7b1b15c4a2e5da4 /t
parent3c49691941ee8eac2acb437146b1e96fe9f1b3ee (diff)
downloadperl-URPM-4f1e1255413c5282ef5f8562be611729a0ffeb70.tar
perl-URPM-4f1e1255413c5282ef5f8562be611729a0ffeb70.tar.gz
perl-URPM-4f1e1255413c5282ef5f8562be611729a0ffeb70.tar.bz2
perl-URPM-4f1e1255413c5282ef5f8562be611729a0ffeb70.tar.xz
perl-URPM-4f1e1255413c5282ef5f8562be611729a0ffeb70.zip
- don't handle %_sourcedir specially, it's not needed
- use an absolute filename for %_topdir, it seems to help (bug in rpm 4.6.0-rc1?)
Diffstat (limited to 't')
-rw-r--r--t/00prepare.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/00prepare.t b/t/00prepare.t
index 67ce859..25b5c37 100644
--- a/t/00prepare.t
+++ b/t/00prepare.t
@@ -6,11 +6,11 @@ use Test::More tests => 1;
use Cwd;
chdir 't' if -d 't';
-for (qw(BUILD RPMS RPMS/noarch tmp)) {
+for (qw(BUILD SOURCES RPMS RPMS/noarch tmp)) {
mkdir $_;
}
# locally build a test rpm
-system(rpmbuild => '--define', '_topdir .', '--define', '_sourcedir .', '--define', '_tmppath ' . Cwd::cwd() . '/tmp/', '-bb', 'test-rpm.spec');
+system(rpmbuild => '--define', '_topdir ' . Cwd::cwd(), '--define', '_tmppath ' . Cwd::cwd() . '/tmp/', '-bb', 'test-rpm.spec');
ok( -f 'RPMS/noarch/test-rpm-1.0-1mdk.noarch.rpm', 'rpm created' );
END { system('rm -rf BUILD tmp') };