[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Why is my %dist resolving to rh8?



On Thu, 2007-10-25 at 15:38 -0600, Orion Poplawski wrote:
> Looks like we've wrapped into redhat version numbers:
> 
>   dist       %{expand:%%(if echo %{distlong} | grep "[^0-9.]"> 
> /dev/null; then
>    echo .%{rheldist}
> else
>    case "%{distlong}" in
>      ( "7.0" | "7.1" | "7.2" | "7.3" | "8" | "9" )
>      echo .%{rhldist}
>      ;;
>      ( "1" | "2" | "3" | "4" | "5" | "6" )
>      echo .%{fcdist}
>      ;;
>    esac;
>    if echo %{distlong} | grep "[^0-9]" > /dev/null; then
>      if [ %{distsver} -ge 90 ]; then
>        echo .%{fctdist}
>      fi
>    fi
> fi;)}
> 
> 
> Time to drop the rhldist stuff?
> 
> Can't figure out where this is defined though...

I'm pretty sure we don't define %{dist} like that anymore, I suspect
this is a legacy hack.

~spot


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]