|
Lines 335-343
Link Here
|
| 335 |
DEPTYPES = ENVIRON["DEPTYPES"] |
335 |
DEPTYPES = ENVIRON["DEPTYPES"] |
| 336 |
ORDTYPES = ENVIRON["ORDTYPES"] |
336 |
ORDTYPES = ENVIRON["ORDTYPES"] |
| 337 |
|
337 |
|
| 338 |
CACHEDTREE = SVCDIR "/deptree" |
338 |
#CACHEDTREE = SVCDIR "/deptree" |
| 339 |
|
339 |
ORIGCACHEDTREE = SVCDIR "/deptree" |
| 340 |
assert(dosystem("rm -f " CACHEDTREE ), "system(rm -f " CACHEDTREE ")") |
340 |
|
|
|
341 |
# Since this could be called more than once simultaneously, use a |
| 342 |
# temporary cache and rename when finished. See bug 48303 |
| 343 |
("/bin/mktemp "SVCDIR"/treecache.XXXXXXX") | getline CACHEDTREE |
| 344 |
if (CACHEDTREE == "") { |
| 345 |
eerror("Failed to create temporary cache!") |
| 346 |
exit 1 |
| 347 |
} |
| 348 |
|
| 349 |
#assert(dosystem("rm -f " CACHEDTREE ), "system(rm -f " CACHEDTREE ")") |
| 350 |
assert(dosystem("rm -f " ORIGCACHEDTREE ), "system(rm -f " ORIGCACHEDTREE ")") |
| 341 |
} |
351 |
} |
| 342 |
|
352 |
|
| 343 |
{ |
353 |
{ |
|
Lines 486-491
Link Here
|
| 486 |
print "LOGGER_SERVICE=" >> (CACHEDTREE) |
496 |
print "LOGGER_SERVICE=" >> (CACHEDTREE) |
| 487 |
|
497 |
|
| 488 |
close(CACHEDTREE) |
498 |
close(CACHEDTREE) |
|
|
499 |
|
| 500 |
system("mv "CACHEDTREE" "ORIGCACHEDTREE) |
| 489 |
} |
501 |
} |
| 490 |
|
502 |
|
| 491 |
|
503 |
|