Changeset 1007


Ignore:
Timestamp:
Dec 21, 2006, 1:09:59 AM (12 years ago)
Author:
bruno
Message:

rpmquery -E doesn't work for older distro (rh73). Replaced with --eval, compatible for all.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/distro-env

    r920 r1007  
    124124
    125125if [ _"$dtype" = _"rpm" ]; then
    126     export TOPBUILDDIR=`rpmquery -E '%{_topdir}' 2> /dev/null`
     126    export TOPBUILDDIR=`rpmquery --eval '%{_topdir}' 2> /dev/null`
    127127    export ARCH=`rpm --showrc | egrep "^build arch" | awk '{print $4}'`
    128128    mkdir -p ${TOPBUILDDIR}/{RPMS,SRPMS,SPECS,SOURCES,BUILD}
Note: See TracChangeset for help on using the changeset viewer.