Merge pull request #702 from pclouds/snow-confirm-before-upload

snow: confirm before uploading packages
This commit is contained in:
Alex Shinn 2020-09-05 13:21:34 +09:00 committed by GitHub
commit 9c6020e22d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -947,9 +947,12 @@
((package-file? (car o))
(if (not (every package-file? (cdr o)))
(non-homogeneous))
;; TODO: include a summary (version, file size, etc.)
(if (yes-or-no? cfg "Upload " o " to "
(remote-uri cfg '(command package uri) "/?"))
(for-each
(lambda (package) (upload-package cfg spec package))
o))
o)))
(else
(if (any package-file? (cdr o))
(non-homogeneous))
@ -958,7 +961,10 @@
(package (create-package (car spec+files)
(cdr spec+files)
package-file)))
(upload-package cfg spec package package-file)))))
;; TODO: include a summary (version, file size, etc.)
(if (yes-or-no? cfg "Upload " o " to "
(remote-uri cfg '(command package uri) "/?"))
(upload-package cfg spec package package-file))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Remove - removes the listed libraries.