mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
2.0 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/mine/rocket.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. Index: mine/rocket.sh
  20. ===================================================================
  21. --- mine/rocket.sh (revision 58)
  22. +++ mine/rocket.sh (working copy)
  23. @@ -43,7 +43,7 @@
  24. chunk == 2 { print > "/var/adm/rocket/dependencies/" pkg; }
  25. chunk == 3 { print > "/var/adm/rocket/cksums/" pkg; }
  26. -chunk == 1 && $1 == "[V]" { ver=$2; }
  27. +chunk == 1 && $1 == "[V]" { ver = $2 "-" $3; }
  28. ' < <( curl -s "$1/packages.db" | gunzip; )
  29. }
  30. @@ -69,7 +69,8 @@
  31. create_gem)
  32. shift
  33. for pkg; do
  34. - v="$(grep '^Package Name and Version' /var/adm/packages/$pkg | cut -f6 -d' ')"
  35. + v="$(grep '^Package Name and Version' /var/adm/packages/$pkg | \
  36. + cut -f6,7 -d' ' | tr ' ' - )"
  37. mine -T /var/adm / "$pkg" "$pkg-$v.tar.bz2"
  38. mine -C /var/adm "$pkg-$v.tar.bz2" "$pkg" "$pkg-$v.gem"
  39. done
  40. @@ -93,7 +94,8 @@
  41. install)
  42. shift
  43. for x; do
  44. - url="$( grep "^$x " /var/adm/rocket/locations.txt | cut -f2 -d' ' | tail -1; )"
  45. + url="$( grep "^$x " /var/adm/rocket/locations.txt | \
  46. + cut -f2 -d' ' | tail -n1; )"
  47. if [ -z "$url" ]; then
  48. echo "Package $x not found - maybe you need to add the archive"
  49. echo "to /etc/rocket.conf and run 'rocket update' first."