[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sup-devel] [PATCH 2/2] {config, sources}.yaml: preserve symlinks and permissions
Reformatted excerpts from William Morgan's message of 2011-01-19:
> Reformatted excerpts from Sascha Silbe's message of 2011-01-18:
> > + unless File.exists?(backup_fn) && File.size(fn) == 0
>
> This line is giving me some problems when fn doesn't exist (e.g. when
> running sup-sync the first time without a config.yaml). Should it be
>
> File.exists?(backup_fn) && File.exists?(fn) && File.size(fn) == 0
>
> instead?
Actually, I think it should be:
if File.exists?(fn) && File.size(fn) > 0
Which has the advantage of actually working...
--
William <wmorgan-sup@masanjin.net>
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel