On Thu, 2009-08-27 at 13:38 +0200, Geert Uytterhoeven wrote: 
> Query RPM for the location of the RPM topdir, instead of guessing,
> which failed on YDEL6 (/usr/src/yellowdog) and Debian/Ubuntu (/usr/src/rpm)
> 
> Signed-off-by: Geert Uytterhoeven <[email protected]>

Ok. Thanks.

Regards--
Subrata

> ---
>  testcases/commands/ade/file/file_test.sh |    9 ++-------
>  1 files changed, 2 insertions(+), 7 deletions(-)
> 
> diff --git a/testcases/commands/ade/file/file_test.sh 
> b/testcases/commands/ade/file/file_test.sh
> index f59b0c6..5fa287b 100755
> --- a/testcases/commands/ade/file/file_test.sh
> +++ b/testcases/commands/ade/file/file_test.sh
> @@ -474,13 +474,8 @@ export TST_COUNT=9
>  $LTPBIN/tst_resm TINFO "TEST #9: file command recognizes RPM files"
>  `type rpm &> /dev/null`
>  if [ $? = 0 ]; then
> -if [ -f /etc/redhat-release ]; then
> -     bDIR=/usr/src/redhat
> -     bCMD=rpmbuild
> -else
> -     bDIR=/usr/src/packages
> -     bCMD=rpmbuild
> -fi
> +bDIR=$(rpm --eval "%{_topdir}")
> +bCMD=rpmbuild
>  
>  rpmversion=`rpm --version | awk -F ' ' '{print $3}' | cut -d '.' -f1 `
>  


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to