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.

33 lines
1.1 KiB

  1. Index: mine/rocket.sh
  2. ===================================================================
  3. --- mine/rocket.sh (revision 58)
  4. +++ mine/rocket.sh (working copy)
  5. @@ -43,7 +43,7 @@
  6. chunk == 2 { print > "/var/adm/rocket/dependencies/" pkg; }
  7. chunk == 3 { print > "/var/adm/rocket/cksums/" pkg; }
  8. -chunk == 1 && $1 == "[V]" { ver=$2; }
  9. +chunk == 1 && $1 == "[V]" { ver = $2 "-" $3; }
  10. ' < <( curl -s "$1/packages.db" | gunzip; )
  11. }
  12. @@ -69,7 +69,8 @@
  13. create_gem)
  14. shift
  15. for pkg; do
  16. - v="$(grep '^Package Name and Version' /var/adm/packages/$pkg | cut -f6 -d' ')"
  17. + v="$(grep '^Package Name and Version' /var/adm/packages/$pkg | \
  18. + cut -f6,7 -d' ' | tr ' ' - )"
  19. mine -T /var/adm / "$pkg" "$pkg-$v.tar.bz2"
  20. mine -C /var/adm "$pkg-$v.tar.bz2" "$pkg" "$pkg-$v.gem"
  21. done
  22. @@ -93,7 +94,8 @@
  23. install)
  24. shift
  25. for x; do
  26. - url="$( grep "^$x " /var/adm/rocket/locations.txt | cut -f2 -d' ' | tail -1; )"
  27. + url="$( grep "^$x " /var/adm/rocket/locations.txt | \
  28. + cut -f2 -d' ' | tail -n1; )"
  29. if [ -z "$url" ]; then
  30. echo "Package $x not found - maybe you need to add the archive"
  31. echo "to /etc/rocket.conf and run 'rocket update' first."