The attached patch has a sort of dirty wordaround for SWT problem, I
don't have an idea for a better way to solve this.
--
أحمد المحمودي (Ahmed El-Mahmoudy)
Digital design engineer
GPG KeyID: 0xEDDDA1B7 (@ subkeys.pgp.net)
GPG Fingerprint: 8206 A196 2084 7E6D 0DF8 B176 BC19 6A94 EDDD A1B7
Workaround for SWT detection
--- jh_depends.orig 2009-07-15 13:43:12.000000000 +0300
+++ jh_depends 2009-07-15 13:10:13.000000000 +0300
@@ -145,6 +145,11 @@
if [ -n "$JARDEPS" ]; then
DEBDEPS="$DEBDEPS `dpkg -S $JARDEPS 2>/dev/null | grep -v ^$p: | cut -d: -f1 | sort -u`"
fi
+ # Workaround for SWT:
+ if echo $JARDEPS | grep 'swt.jar' > /dev/null 2>&1 ; then
+ SWTLINK=$(update-alternatives --display swt.jar | grep "link currently points to" | sed -e 's/link currently points to//' 2> /dev/null )
+ DEBDEPS="$DEBDEPS $(dpkg -S $SWTLINK 2> /dev/null | cut -d: -f1 )"
+ fi
if [ -n "$VERBOSE" ]; then
echo "Found Debs:" $DEBDEPS
fi