mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-25 05:29:47 +00:00
Formerly ar.c.~6~
This commit is contained in:
parent
d519e2c19b
commit
21eecea26d
1 changed files with 10 additions and 5 deletions
15
ar.c
15
ar.c
|
@ -83,19 +83,24 @@ ar_member_date (name)
|
||||||
|
|
||||||
ar_parse_name (name, &arname, &memname);
|
ar_parse_name (name, &arname, &memname);
|
||||||
|
|
||||||
/* Make sure we know the modtime of the archive itself because
|
/* Make sure we know the modtime of the archive itself because we are
|
||||||
we are likely to be called just before commands to remake a
|
likely to be called just before commands to remake a member are run,
|
||||||
member are run, and they will change the archive itself. */
|
and they will change the archive itself.
|
||||||
|
|
||||||
|
But we must be careful not to enter_file the archive itself if it does
|
||||||
|
not exist, because pattern_search assumes that files found in the data
|
||||||
|
base exist or can be made. */
|
||||||
{
|
{
|
||||||
struct file *arfile;
|
struct file *arfile;
|
||||||
arfile = lookup_file (arname);
|
arfile = lookup_file (arname);
|
||||||
if (arfile == 0)
|
if (arfile == 0 && file_exists_p (arname))
|
||||||
{
|
{
|
||||||
arfile = enter_file (arname);
|
arfile = enter_file (arname);
|
||||||
arname_used = 1;
|
arname_used = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
(void) f_mtime (arfile, 0);
|
if (arfile != 0)
|
||||||
|
(void) f_mtime (arfile, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
val = ar_scan (arname, ar_member_date_1, (long int) memname);
|
val = ar_scan (arname, ar_member_date_1, (long int) memname);
|
||||||
|
|
Loading…
Reference in a new issue