We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a2b149b + 569dce9 commit d7dae45Copy full SHA for d7dae45
src/manetu/gitlab/download/generic_package.clj
@@ -35,8 +35,9 @@
35
(some? (re-find (re-pattern (str "^" prefix)) s))))
36
37
(defn- open-download
38
- [{:keys [package-name] :as options} version]
39
- (let [url (str gitlab/gitlab-api-base (compute-api-prefix options) "/generic/" package-name "/" version "/" package-name ".tgz")]
+ [{:keys [package-name package-file] :as options} version]
+ (let [package-file (or package-file (str package-name ".tgz"))
40
+ url (str gitlab/gitlab-api-base (compute-api-prefix options) "/generic/" package-name "/" version "/" package-file)]
41
(log/debug "url:" url)
42
(:body
43
(curl/get url {:headers {"PRIVATE-TOKEN" gitlab/gitlab-token}
0 commit comments