Permalink
Browse files

rpg-sync ignores non-ruby platform gems when building index

  • Loading branch information...
1 parent 4961c38 commit aceb707a2991ac87d8de8592ab10bdfc67080213 @rtomayko committed Apr 2, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 rpg-sync.sh
View
@@ -157,9 +157,13 @@ gzip -dc - |
# Now turn this mess of Marshal data into something we can deal with using
# `rpg-parse-index`. See that file for more info on the `specs.gz` file
-# format.
+# format and the output from `rpg-parse-index`.
rpg-parse-index |
+# We only want packages with a "ruby" platform. This may be too aggressive a
+# filter but seems to work fine in 99.9% of cases.
+grep ' ruby$' |
+
# We don't need the platform, yet. Grab only the `<name>` and `<version>`
# fields. After `cut`, our stream text looks like this:
#

0 comments on commit aceb707

Please sign in to comment.