瀏覽代碼

* fix a stupid typo in apt.cron.daily

Michael Vogt 21 年之前
父節點
當前提交
43835916cf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      debian/apt.cron.daily

+ 1 - 1
debian/apt.cron.daily

@@ -121,7 +121,7 @@ check_size_constraints()
 	    # 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))