Changeset 1007 in MondoRescue


Ignore:
Timestamp:
Dec 21, 2006, 1:09:59 AM (18 years ago)
Author:
Bruno Cornec
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.