[147242] branches/vcs-fetch/base/src/port1.0/portlint.tcl
raimue at macports.org
raimue at macports.org
Thu Mar 31 16:34:20 PDT 2016
Revision: 147242
https://trac.macports.org/changeset/147242
Author: raimue at macports.org
Date: 2016-03-31 16:34:20 -0700 (Thu, 31 Mar 2016)
Log Message:
-----------
Add lint check for fetch.type git
If no checksums are given, fetch would produce a tarball, but it will expect
valid checksums in the checksum phase.
Modified Paths:
--------------
branches/vcs-fetch/base/src/port1.0/portlint.tcl
Modified: branches/vcs-fetch/base/src/port1.0/portlint.tcl
===================================================================
--- branches/vcs-fetch/base/src/port1.0/portlint.tcl 2016-03-31 23:33:17 UTC (rev 147241)
+++ branches/vcs-fetch/base/src/port1.0/portlint.tcl 2016-03-31 23:34:20 UTC (rev 147242)
@@ -709,6 +709,15 @@
}
}
+ if {${fetch.type} eq "git"} {
+ if {![info exists checksums] || $checksums eq ""} {
+ ui_error "Using fetch.type git, but no checksums for mirroring"
+ incr errors
+ } else {
+ ui_info "OK: checksums defined for fetch.type git"
+ }
+ }
+
### TODO: more checks to Tcl variables/sections
ui_debug "Name: $name"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160331/c0045f4a/attachment.html>
More information about the macports-changes
mailing list