lib/runcible/extensions/repository.rb in runcible-0.3.3 vs lib/runcible/extensions/repository.rb in runcible-0.4.0

- old
+ new

@@ -102,11 +102,12 @@ # Retrieves the RPM IDs for a single repository # # @param [String] id the ID of the repository # @return [RestClient::Response] the set of repository RPM IDs def self.rpm_ids(id) - criteria = {:type_ids=>[Runcible::Extensions::Rpm.content_type]} + criteria = {:type_ids=>[Runcible::Extensions::Rpm.content_type], + :fields=>{:unit=>[], :association=>['unit_id']}} self.unit_search(id, criteria).collect{|i| i['unit_id']} end # Retrieves the RPMs for a single repository # @@ -147,10 +148,11 @@ # Retrieves the errata IDs for a single repository # # @param [String] id the ID of the repository # @return [RestClient::Response] the set of repository errata IDs def self.errata_ids(id) - criteria = {:type_ids=>[Runcible::Extensions::Errata.content_type]} + criteria = {:type_ids=>[Runcible::Extensions::Errata.content_type], + :fields=>{:unit=>[], :association=>['unit_id']}} self.unit_search(id, criteria).collect{|i| i['unit_id']} end # Retrieves the errata for a single repository