From 2efadc56cf75f60da609463a497ac59081af79e1 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Wed, 29 May 2013 14:55:20 +0000 Subject: [PATCH] build cpio-lang 2.11-20 on sles 10 Former-commit-id: e6ddc4ade4f51a0ce08e074ca1a7b7c7e7fcbb16 --- cpio/bldcpio.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cpio/bldcpio.pl b/cpio/bldcpio.pl index 6b27d66..80d12dd 100755 --- a/cpio/bldcpio.pl +++ b/cpio/bldcpio.pl @@ -88,11 +88,9 @@ if ( @rpm == 0 ) { print "The rpm file was not generated successfully\n"; exit 1; } else { - $objrpm = $rpm[0]; - chomp $objrpm; $cmd = "mkdir -p $dstdir"; &runcmd ($cmd); - $cmd = "cp -rf $objrpm $dstdir"; + $cmd = "cp -rf $blddir/RPMS/$arch/cpio*rpm $dstdir"; &runcmd ($cmd); print "The obj file has been built successfully, you can get it here: $dstdir\n"; exit 0;