--- woof-tree-orig/support/inline_get_compat 2011-05-21 08:18:43.467719579 +0800
+++ woof-tree/support/inline_get_compat 2011-05-21 13:17:33.076719182 +0800
@@ -131,6 +131,10 @@ do
bzip2 --test $ONEFILE_BASE > /dev/null 2>&1
[ $? -eq 0 ] && SUCCESS='yes'
;;
+ scientific)
+ rpm -l $ONEFILE_BASE > /dev/null 2>&1
+ [ $? -eq 0 ] && SUCCESS='yes'
+ ;;
esac
rm -rf tempdironly 2>/dev/null
[ "$SUCCESS" = "no" ] && rm -f ${ONEFILE_BASE}
@@ -291,6 +295,22 @@ do
continue
fi
;;
+ scientific)
+ FULLPKGNAME="`basename $ONEBINARYPKG`"
+ PKGNAME="`basename $ONEBINARYPKG .rpm`" #ex: bash-3.2
+ rm -rf sandbox2
+ mkdir sandbox2
+ cp -a $ONEBINARYPKG sandbox2/
+ cd sandbox2
+ rpm2cpio $FULLPKGNAME | cpio -id > /dev/null 2>&1
+ RETVAL=$?
+ rm -f $FULLPKGNAME
+ cd ..
+ if [ $RETVAL -ne 0 ];then
+ echo "ERROR: failed to unpack $PKGNAME"
+ continue
+ fi
+ ;;
esac
#w006 multple slackware pkgs getting combined may mean more than one hack-install.sh...
[ -f /tmp/2createpackages-hackinstallsh ] && rm -f /tmp/2createpackages-hackinstallsh