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

check_symlinks_and_bomb ()



Hi,

I'm having the follow errors with check_symlinks_and_bomb () in the postints:

Preparing to replace xfree86-common 4.1.0-2pre3v2 (using .../xfree86-common_4.1.0-3_all.deb) ...
/var/lib/dpkg/tmp.ci/preinst: 70: Syntax error: Bad for loop variable
dpkg: error processing /var/cache/apt/archives/xfree86-common_4.1.0-3_all.deb (--unpack):
 subprocess pre-installation script returned error exit status 2
/var/lib/dpkg/tmp.ci/postrm: 70: Syntax error: Bad for loop variable
dpkg: error while cleaning up:
 subprocess post-removal script returned error exit status 2

Fair enough, that can be fixed. But why is that being called in the first
place?

This is the output of check_and_bomb.sh, a quick cut'n'paste:

% ./check_and_bomb.sh 2> foo
check_symlinks_and_bomb \
    /usr/bin/X11 \
    /usr/include/X11 \
    /usr/lib/X11 \
    /usr/X11R6/lib/X11/rgb.txt
+ cat
+ check_symlinks_and_bomb /usr/bin/X11 /usr/include/X11 /usr/lib/X11 /usr/X11R6/lib/X11/rgb.txt
+ [ -n /usr/bin/X11 /usr/include/X11 /usr/lib/X11 /usr/X11R6/lib/X11/rgb.txt ]
+ [ -L /usr/bin/X11 ]
+ maplink /usr/bin/X11
+ echo ../X11R6/bin
+ readlink /usr/bin/X11
+ [ ../X11R6/bin != ../X11R6/bin ]
+ [ -L /usr/include/X11 ]
+ maplink /usr/include/X11
+ echo ../X11R6/include/X11
+ readlink /usr/include/X11
+ [ ../X11R6/include/X11 != ../X11R6/include/X11 ]
+ [ -L /usr/lib/X11 ]
+ maplink /usr/lib/X11
+ echo ../X11R6/lib/X11
+ readlink /usr/lib/X11
+ [ ../X11R6/lib/X11 != ../X11R6/lib/X11 ]
+ [ -L /usr/X11R6/lib/X11/rgb.txt ]
+ maplink /usr/X11R6/lib/X11/rgb.txt
+ echo /etc/X11/rgb.txt
+ readlink /usr/X11R6/lib/X11/rgb.txt
+ [ /etc/X11/rgb.txt != /etc/X11/rgb.txt ]

So, what conditions are necessary to cause that function to even be
called?

Regards,

Edward.

-- 
Edward C. Lang:              edward.lang@anu.edu.au |   ___ ___ _ ___  |
Programmer at the Centre for Bioinformation Science |  / __| _ |_) __| |
Telephone:                          +61 2 6125 4717 | | (__| _ \ \__ \ |
Postal:        JCSMR, GPO Box 334 Canberra ACT 2601 |  \___|___/_|___/ |



Reply to: