* dump_setup.cc (check_package_files): Strip leading / and ./ from
package file names.
This commit is contained in:
parent
22d82f9f46
commit
919497ee6b
@ -1,3 +1,8 @@
|
|||||||
|
2003-08-17 David Rothenberger <daveroth@acm.org>
|
||||||
|
|
||||||
|
* dump_setup.cc (check_package_files): Strip leading / and ./ from
|
||||||
|
package file names.
|
||||||
|
|
||||||
2003-08-16 David Rothenberger <daveroth@acm.org>
|
2003-08-16 David Rothenberger <daveroth@acm.org>
|
||||||
|
|
||||||
* dump_setup.cc (package_find): Don't stop searching on missing
|
* dump_setup.cc (package_find): Don't stop searching on missing
|
||||||
|
@ -276,6 +276,12 @@ check_package_files (int verbose, char *package)
|
|||||||
while (fgets (buf, MAX_PATH, fp))
|
while (fgets (buf, MAX_PATH, fp))
|
||||||
{
|
{
|
||||||
char *filename = strtok(buf, "\n");
|
char *filename = strtok(buf, "\n");
|
||||||
|
|
||||||
|
if (*filename == '/')
|
||||||
|
++filename;
|
||||||
|
else if (!strncmp (filename, "./", 2))
|
||||||
|
filename += 2;
|
||||||
|
|
||||||
if (filename[strlen (filename) - 1] == '/')
|
if (filename[strlen (filename) - 1] == '/')
|
||||||
{
|
{
|
||||||
if (!directory_exists (verbose, filename, package))
|
if (!directory_exists (verbose, filename, package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user