Dolda2000 GitWeb
/
tpkg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56c4259
)
Round utime times to integers.
master
author
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 19 Jan 2023 16:49:40 +0000
(17:49 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 19 Jan 2023 16:49:40 +0000
(17:49 +0100)
tpkg
patch
|
blob
|
blame
|
history
diff --git
a/tpkg
b/tpkg
index
a9b3024
..
01cf38e
100755
(executable)
--- a/
tpkg
+++ b/
tpkg
@@
-268,7
+268,7
@@
def install(pfx, pkg, pkgname):
pass
raise
os.rename(tmpp, tp)
- os.utime(tp, ns=(
time.time() * 1e9, sb.st_mtime * 1e9
))
+ os.utime(tp, ns=(
round(time.time() * 1e9), round(sb.st_mtime * 1e9)
))
def uninstall(pfx, pkg):
for fn in pfx.pkgfiles(pkg):