maphew / cyg-apt

Automatically exported from code.google.com/p/cyg-apt
0 stars 0 forks source link

Downloads setup.ini too often #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I see from the commit log cyg-apt tries to be helpful by updating setup.ini
for any function that uses that file. There is an option to disable this
behaviour, however I think that is too binary, too aggressive. It would be
better if the default behaviour was to update the ini only if it is more
than X old, say 1 day. 

Use case: I just installed cyg-apt 15 minutes ago, the available package
list is current, yet even just reporting currently installed packages
(cyg-apt list) downloads a new setup.ini

Original issue reported on code.google.com by map...@gmail.com on 30 Oct 2009 at 4:55

GoogleCodeExporter commented 9 years ago
This problem is a tricky one. For users with plenty of bandwidth it is nice not 
to
have to think about the seutp.ini ever again: setup.ini is just always current.

I know what you mean about too agressive. I'm not (yet) convinced that having 
manual
updates as default is the right way to go though: it's easy to forget to 
update, or
not know you need to update if you are new to this.

The option to disable in .cyg-apt is sticky, which should help.

You are right though -- a timed approach would be best.

Original comment by cjcor...@gmail.com on 3 Nov 2009 at 4:14

GoogleCodeExporter commented 9 years ago
"wget -N" would help if the server allows but in this case they mostly do :-)

Original comment by flobee on 12 Jan 2011 at 10:01

GoogleCodeExporter commented 9 years ago
$ cyg-apt update
cyg-apt: downloading: http://ftp.ntu.edu.tw/pub/cygwin/setup-2.bz2
cyg-apt: downloading: http://ftp.ntu.edu.tw/pub/cygwin/setup-2.ini
cyg-apt: bad URL http://ftp.ntu.edu.tw/pub/cygwin/setup-2.ini, exiting.
python 2.6.5

Original comment by yxml...@gmail.com on 9 Jun 2011 at 1:26

GoogleCodeExporter commented 9 years ago
"The option to disable in .cyg-apt is sticky, which should help."

Where is this option? I've been digging through .cyg-apt and can't find it.

Thanks -

Original comment by ben.h.pi...@gmail.com on 8 Nov 2011 at 5:31