Skip to content

Commit

Permalink
portbump.tcl: implement replacing checksums (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
satraul committed Apr 1, 2019
1 parent d5e652c commit 0e9c64a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/port1.0/portbump.tcl
Expand Up @@ -33,6 +33,7 @@
package provide portbump 1.0
package require portutil 1.0
package require portchecksum 1.0
package require macports

set org.macports.bump [target_new org.macports.bump portbump::bump_main]
target_provides ${org.macports.bump} bump
Expand Down Expand Up @@ -218,7 +219,10 @@ proc portbump::bump_main {args} {
# User said yes
# TODO: Reset revision to 0
}
# TODO: Replace Portfile checksums
foreach {type sum calculated_sum} $both_checksums {
# TODO: Test implementation:
reinplace "s|${sum}|${calculated_sum}" ${portdir}/Portfile
}
ui_msg "Checksums successfully bumped. Suggested commit message:"
# TODO: Implement commit message suggestion
ui_msg [format "%-8s%s: update to $" "" [option subport] $version]
Expand Down

0 comments on commit 0e9c64a

Please sign in to comment.