소스 검색

* 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
 	    # check for MinAge of the file
 	    if [ ! $MinAge -eq 0 ]; then 
 	    if [ ! $MinAge -eq 0 ]; then 
 		# check both ctime and mtime 
 		# check both ctime and mtime 
-		mtime=$(date -c %Y $file)
+		mtime=$(stat -c %Y $file)
 		ctime=$(stat -c %Z $file)
 		ctime=$(stat -c %Z $file)
 		if [ $mtime -gt $ctime ]; then
 		if [ $mtime -gt $ctime ]; then
 		    delta=$(($now-$mtime))
 		    delta=$(($now-$mtime))