aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ɓukasz P. Michalik <lmi@ift.uni.wroc.pl> 2010-10-26 19:40:16 +0200
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-10-27 08:01:15 +0100
commitbfa380a8baa26cb5a4c26ec06a3e525aa07de526 (patch)
treedecefff9285e2c90f323b3281f5a8c6735dc099a
parent74993a57b69de9adf312962da45537009e961d6d (diff)
downloadpaludis-bfa380a8baa26cb5a4c26ec06a3e525aa07de526.tar.gz
paludis-bfa380a8baa26cb5a4c26ec06a3e525aa07de526.tar.xz
coreutils-8.6 returns mtime as decimal
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/wrapped_getmtime6
1 files changed, 4 insertions, 2 deletions
diff --git a/paludis/repositories/e/ebuild/utils/wrapped_getmtime b/paludis/repositories/e/ebuild/utils/wrapped_getmtime
index d907c83..49ec108 100755
--- a/paludis/repositories/e/ebuild/utils/wrapped_getmtime
+++ b/paludis/repositories/e/ebuild/utils/wrapped_getmtime
@@ -7,8 +7,10 @@ case $(uname -s) in
;;
Linux)
- stat -c '%Y' "$@"
- exit $?
+ mtime=$(stat -c '%Y' "$@")
+ ret=$?
+ echo ${mtime%%.*}
+ exit $ret
;;
*)