+Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
+
+ * setup.c (processdirlisting): Make "N" option a little less aggressive.
+
Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
* setup.c (tarx): Wait to after tar has completed to reset protections
{
int download = 0;
char *filename = strrchr (url, '/') + 1;
- if (download_when == NEVER)
- /* nothing to do */;
- else if (download_when == ALWAYS || _access (filename, 0) == -1)
+ if (download_when == ALWAYS || _access (filename, 0) == -1)
download = 1;
else
{
char text[_MAX_PATH];
char *answer;
- sprintf (text, "Replace %s from the net (ynAN)", filename);
- answer = prompt (text, "y");
+ if (download_when == NEVER)
+ answer = "N";
+ else
+ {
+ sprintf (text, "Replace %s from the net (ynAN)", filename);
+ answer = prompt (text, "y");
+ }
if (answer)
{
break;
case 'N':
download_when = NEVER;
+ fprintf (stderr, "Skipping %s\n", filename);
case 'n':
default:
download = 0;
if (download)
{
- printf ("Downloading: %s...", url);
+ printf ("Downloading: %s...", filename);
fflush (stdout);
if (geturl (session, url, filename, 0))
{