        aggregate-repo
        (aggregate-repositories
          index-strat
-         package-system
-         repositories)
+         repositories
+         (get-in package-systems [pkgsys :genrepo])
+         version-comparator)
        result
        (resolve-dependencies
         requirement-data

               search-strat
               present-packages
               requirements
               package-system]}
       options
       requirement-data
       (into []
             (map


(def
  ^:private
  version-comparators
  {
   "debian" vers/debian-vercmp
   "maven" vers/debian-vercmp
   "naive" vers/naive-vercmp
   "python" vers/python-vercmp
   "rpm" vers/rpm-vercmp
   "rubygem" vers/rubygem-vercmp
   "semver" vers/semver-vercmp
   })

(def
  ^:private
  package-systems
  {"apt" {:genrepo apt-pkg/slurp-apt-repo
             :version-comparison "debian"}
   "degasolv" {:genrepo degasolv-pkg/slurp-degasolv-repo
               :version-comparison "maven"}})

(defn- generate-repo-index-cli!
  [options arguments]
