Results 1 to 2 of 2

Thread: Version check fails on multiarch (i386/x86_64)

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Posts
    16
    Rep Power
    9

    Default Version check fails on multiarch (i386/x86_64)

    Hi all,

    While the installer checks for prerequisites, it tries to figure out the installed version using the rpm -q command. On a dual-arch box (mine is a FC4 x86_64), this command can return more than one single line; this leads to errors within the install script.

    To avoid these errors, I changed line 885 in util/utilfunc.sh to eliminate dupliates using "sort" (see below).

    Hope this helps anyone else with this problem. Maybe this modification should be added to the standard scripts.

    Regards
    --Marcel

    row 885 in util/utilfunc.sh:
    replace
    PKGINSTALLED=`$PACKAGEQUERY $pkg 2> /dev/null`

    by

    PKGINSTALLED=`$PACKAGEQUERY $pkg 2> /dev/null | sort -u`

  2. #2
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default nice trick

    I'll add that to the script monday.

Similar Threads

  1. Check ZCS Version
    By telescop in forum Administrators
    Replies: 8
    Last Post: 04-14-2008, 11:55 AM
  2. Toaster Problem
    By jdell in forum Users
    Replies: 8
    Last Post: 03-08-2007, 04:03 AM
  3. CENTOS 4.3 -SME Server 7.0 Instal of version 4 fails
    By ricardon in forum Installation
    Replies: 7
    Last Post: 08-17-2006, 06:10 AM
  4. Bayes filter import bug
    By jwilso2 in forum Developers
    Replies: 4
    Last Post: 11-03-2005, 09:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •