[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#833433: jessie-pu: package flashplugin-nonfree/1:3.6.1+deb8u1



Control: tag -1 - moreinfo

On Fri, Aug 05, 2016 at 03:19:59PM +0200, Julien Cristau wrote:
> Control: tag -1 moreinfo
> 
> On Thu, Aug  4, 2016 at 11:38:34 +0200, Bart Martens wrote:
> 
> > +		if [ "`stat --format=%y $cachedir/get-upstream-version.pl`" \< "2016-08-04 09:35" ]
> 
> Not sure about using string comparison for comparing dates.  And is stat
> --format=%y's output stable across locales etc?

Yes, see function human_time in src/stat.c in coreutils.

> Wouldn't stat --format=%Y and test -lt make this easier?

That would be, in my opinion, less readable.

Regards,

Bart Martens


Reply to: