Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 21st, 2011  |  syntax: Diff  |  size: 1.21 KB  |  views: 155  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- woof-tree-orig/support/inline_get_compat    2011-05-21 08:18:43.467719579 +0800
  2. +++ woof-tree/support/inline_get_compat 2011-05-21 13:17:33.076719182 +0800
  3. @@ -131,6 +131,10 @@ do
  4.          bzip2 --test $ONEFILE_BASE > /dev/null 2>&1
  5.          [ $? -eq 0 ] && SUCCESS='yes'
  6.         ;;
  7. +          scientific)
  8. +           rpm -l $ONEFILE_BASE > /dev/null 2>&1
  9. +           [ $? -eq 0 ] && SUCCESS='yes'
  10. +           ;;
  11.        esac
  12.        rm -rf tempdironly 2>/dev/null
  13.        [ "$SUCCESS" = "no" ] && rm -f ${ONEFILE_BASE}
  14. @@ -291,6 +295,22 @@ do
  15.         continue
  16.        fi
  17.       ;;
  18. +     scientific)
  19. +      FULLPKGNAME="`basename $ONEBINARYPKG`"
  20. +      PKGNAME="`basename $ONEBINARYPKG .rpm`" #ex: bash-3.2
  21. +      rm -rf sandbox2
  22. +      mkdir sandbox2
  23. +      cp -a $ONEBINARYPKG sandbox2/
  24. +      cd sandbox2
  25. +      rpm2cpio $FULLPKGNAME | cpio -id > /dev/null 2>&1
  26. +      RETVAL=$?
  27. +      rm -f $FULLPKGNAME
  28. +      cd ..
  29. +      if [ $RETVAL -ne 0 ];then
  30. +       echo "ERROR: failed to unpack $PKGNAME"
  31. +       continue
  32. +      fi
  33. +     ;;
  34.      esac
  35.      #w006 multple slackware pkgs getting combined may mean more than one hack-install.sh...
  36.      [ -f /tmp/2createpackages-hackinstallsh ] && rm -f /tmp/2createpackages-hackinstallsh
clone this paste RAW Paste Data