unpack: don't assert if target file of a symlink doesn't exist, it may happen.
This commit is contained in:
parent
a6c979295f
commit
4945755d53
@ -441,15 +441,13 @@ unpack_archive(struct xbps_handle *xhp,
|
|||||||
* Check if current link from binpkg hasn't been
|
* Check if current link from binpkg hasn't been
|
||||||
* modified, otherwise extract new link.
|
* modified, otherwise extract new link.
|
||||||
*/
|
*/
|
||||||
if (file_exists) {
|
buf = realpath(entry_pname, NULL);
|
||||||
buf = realpath(entry_pname, NULL);
|
if (buf) {
|
||||||
assert(buf);
|
|
||||||
if (strcmp(xhp->rootdir, "/")) {
|
if (strcmp(xhp->rootdir, "/")) {
|
||||||
p = buf;
|
p = buf;
|
||||||
p += strlen(xhp->rootdir);
|
p += strlen(xhp->rootdir);
|
||||||
} else
|
} else
|
||||||
p = buf;
|
p = buf;
|
||||||
assert(p);
|
|
||||||
tgtlnk = find_pkg_symlink_target(filesd,
|
tgtlnk = find_pkg_symlink_target(filesd,
|
||||||
entry_pname);
|
entry_pname);
|
||||||
assert(tgtlnk);
|
assert(tgtlnk);
|
||||||
|
Loading…
Reference in New Issue
Block a user