Eliminate wtf dbpath shuffling in rpmdbMoveDatabase()
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 22 Apr 2008 10:44:10 +0000 (13:44 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 22 Apr 2008 10:58:15 +0000 (13:58 +0300)
commit542cfb834305208beeb26e817de62ce26de9103a
tree8e8bef64cd88910abc4adf13fe5e67471aa31870
parentdfa18246308ca5c84fd642a8a3f4a6a0cf252cce
Eliminate wtf dbpath shuffling in rpmdbMoveDatabase()
- Just use rpmGetPath() to construct a clean, sanitized path from the
  components.
- Previously it went to great lengths to ensure trailing / on dbpath,
  catenate the paths with %s/%s/%s and then rpmCleanPath() to get rid
  of the extra slashes just created. Eh.
rpmdb/rpmdb.c