]> git.saurik.com Git - apt.git/blobdiff - debian/apt.cron.daily
* remove all the remaining #pragma implementation
[apt.git] / debian / apt.cron.daily
index e3aaccfb07a344df582bb5da307494fa92ea0dcf..26dfa253083f516433713b46d0fceed89a5e1117 100644 (file)
@@ -121,7 +121,7 @@ check_size_constraints()
            # check for MinAge of the file
            if [ ! $MinAge -eq 0 ]; then 
                # check both ctime and mtime 
            # check for MinAge of the file
            if [ ! $MinAge -eq 0 ]; then 
                # check both ctime and mtime 
-               mtime=$(date -c %Y $file)
+               mtime=$(stat -c %Y $file)
                ctime=$(stat -c %Z $file)
                if [ $mtime -gt $ctime ]; then
                    delta=$(($now-$mtime))
                ctime=$(stat -c %Z $file)
                if [ $mtime -gt $ctime ]; then
                    delta=$(($now-$mtime))