1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-05 00:55:04 -05:00
pacman/lib/libalpm
Xavier Chantry 0966c33a72 Get rid of double / in database paths.
Errors like the following one happen regularly (for unknown reasons...) :
error: could not open file /var/lib/pacman/local//glibc-2.7-9/depends: No
such file or directory

Anyway, every time an user reported an error like that, it always seemed
like he thought the error was caused by the double /, which is obviously
wrong.

Since db->path always include a trailing /, there is no need to add one when
concatenating paths in be_files.c or add.c.
Additionally, some static strings were switched to dynamic.
And the computation of the "dbpath"/"pkgname"-"pkgversion" was refactored
in db_read, db_write and db_remove with a get_pkgpath static function.

Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
2008-06-04 16:25:27 -05:00
..
po Merge branch 'maint' 2008-03-09 12:03:54 -05:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
add.c Get rid of double / in database paths. 2008-06-04 16:25:27 -05:00
add.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
alpm_list.c Cleanup usages of alpm_list_find and alpm_list_remove. 2008-05-13 15:49:02 -05:00
alpm_list.h Cleanup usages of alpm_list_find and alpm_list_remove. 2008-05-13 15:49:02 -05:00
alpm.c Remove unnecessary header file, move one macro to util.c 2008-04-06 20:20:20 -05:00
alpm.h Reimplement TotalDownload functionality 2008-06-04 15:38:53 -05:00
backup.c memleak fix: ensure backup fname isn't lost if unused 2008-03-23 16:55:52 -05:00
backup.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
be_files.c Get rid of double / in database paths. 2008-06-04 16:25:27 -05:00
be_package.c Simplify _alpm_pkg_new() 2008-05-13 19:03:54 -05:00
cache.c Fix rewinddir regression by cleaning up db_scan 2008-05-13 18:44:13 -05:00
cache.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
conflict.c Remove an outdated exception check in file conflict code 2008-05-13 15:49:02 -05:00
conflict.h New _alpm_conflict_dup function 2008-01-27 11:54:25 -06:00
db.c Use correct C type for file sizes 2008-06-04 15:38:47 -05:00
db.h Fix rewinddir regression by cleaning up db_scan 2008-05-13 18:44:13 -05:00
delta.c Use correct C type for file sizes 2008-06-04 15:38:47 -05:00
delta.h Use correct C type for file sizes 2008-06-04 15:38:47 -05:00
deps.c Remove wrapper call around versioncmp 2008-05-14 00:37:51 -05:00
deps.h Cleanup usages of alpm_list_find and alpm_list_remove. 2008-05-13 15:49:02 -05:00
dload.c Use correct C type for file sizes 2008-06-04 15:38:47 -05:00
dload.h Remove unnecessary import in dload.h 2008-04-10 20:53:28 -05:00
error.c Fix some fallout from the delta/download changes 2008-04-26 13:03:53 -05:00
graph.h Use correct C type for file sizes 2008-06-04 15:38:47 -05:00
group.c Cleanup usages of alpm_list_find and alpm_list_remove. 2008-05-13 15:49:02 -05:00
group.h Cleanup usages of alpm_list_find and alpm_list_remove. 2008-05-13 15:49:02 -05:00
handle.c Reimplement TotalDownload functionality 2008-06-04 15:38:53 -05:00
handle.h Reimplement TotalDownload functionality 2008-06-04 15:38:53 -05:00
log.c Remove unnecessary header file, move one macro to util.c 2008-04-06 20:20:20 -05:00
log.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
Makefile.am Refactor pkg_load/parse_descfile into a new backend file 2008-05-11 20:07:55 -05:00
md5.c libalpm/md5: Fix license header 2008-06-03 21:31:31 -05:00
md5.h libalpm/md5: Fix license header 2008-06-03 21:31:31 -05:00
package.c Use correct C type for file sizes 2008-06-04 15:38:47 -05:00
package.h Use correct C type for file sizes 2008-06-04 15:38:47 -05:00
remove.c Fix for remove052.py by moving recursedeps before checkdeps. 2008-05-29 06:37:20 -05:00
remove.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
sync.c Reimplement TotalDownload functionality 2008-06-04 15:38:53 -05:00
sync.h pmsyncpkg_t cleanup 2008-01-27 12:05:33 -06:00
trans.c Remove unnecessary header file, move one macro to util.c 2008-04-06 20:20:20 -05:00
trans.h Remove trans->targets 2008-03-10 18:57:36 -05:00
util.c Fix compilation warning on x86_64 2008-05-14 19:38:58 -05:00
util.h Remove unnecessary NULL check in FREE() macro 2008-04-19 15:59:40 -05:00