update comments

This commit is contained in:
Denis Bilenko 2025-03-05 16:14:09 +01:00
parent 9568ce19ac
commit 97dedaba7f
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
""" """
Cross-platform set mtime with nanosecond precision. Cross-platform set mtime with nanosecond precision.
Usage: setmtime.py <timestmap> <filenames> Usage: setmtime.py <timestamp> <filenames>
""" """
import sys import sys

View File

@ -19,7 +19,7 @@ type WheelInfo struct {
// - if there is an existing part after + it is dropped // - if there is an existing part after + it is dropped
// - append +<mtime of the original wheel> to version // - append +<mtime of the original wheel> to version
// //
// Example transform: "1.2.3" -> "1.2.3+2025030412345678" // Example version transform: "1.2.3" -> "1.2.3+1741091696780123321"
func calculateNewVersion(info WheelInfo, mtime time.Time) (newVersion, newFilename string) { func calculateNewVersion(info WheelInfo, mtime time.Time) (newVersion, newFilename string) {
baseVersion, _, _ := strings.Cut(info.Version, "+") baseVersion, _, _ := strings.Cut(info.Version, "+")