summaryrefslogtreecommitdiff
path: root/pactest/tests/sync402.py
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2008-03-28 23:58:33 +0100
committerDan McGee <dan@archlinux.org>2008-03-28 18:32:04 -0500
commit3fe43ffa04efd9937205938ef74d9dbba1a7aa42 (patch)
treefd34e2bde926e7bee667bf9ae1efb068a4de419f /pactest/tests/sync402.py
parent562442633a9dd8026d914d785f15de2d0a95fdef (diff)
downloadpacman-3fe43ffa04efd9937205938ef74d9dbba1a7aa42.tar.xz
Duplicate the result of archive_entry_pathname.
After the libarchive upgrade from 2.4.12 to 2.4.14, our usage of archive_entry_pathname became dangerous. We were using the result of that function even after calls to archive_entry_set_pathname. With 2.4.14, the entryname becomes wrong after these calls, and so all the future use of entryname are bogus. entryname is used quite a lot for logging, so that's not so bad. But it's also used for the backup handling, so that's not very cool. For example, reinstalling a package with backup entries will erase all the md5 entries from the DB, because they won't be found back. entryname is now a static string so that we can easily keep the result of archive_entry_pathname. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> [Dan: fixed version numbers in commit message] Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/tests/sync402.py')
0 files changed, 0 insertions, 0 deletions