1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00
Commit Graph

315 Commits

Author SHA1 Message Date
Aurelien Foret
831ff882ae reworked lock handling (patch from VMiklos <vmiklos@frugalware.org>) 2006-01-26 22:16:57 +00:00
Aurelien Foret
18986b1805 reworked lock handling (patch from VMiklos <vmiklos@frugalware.fr>) 2006-01-26 22:16:57 +00:00
Aurelien Foret
7818e6f745 doxygen comments update (patch from VMiklos <vmiklos@frugalware.org>) 2006-01-26 19:52:47 +00:00
Judd Vinet
26ec9573ef changed behaviour with original=X,current=Y,new=Z backup scenario -- install new file as .pacnew and keep old one in place 2006-01-22 02:30:15 +00:00
Aurelien Foret
a10584aec4 document package, group, sync and transaction functions (patch from VMiklos <vmiklos@frugalware.org>) 2006-01-21 19:29:10 +00:00
Aurelien Foret
fc8be93314 resolvedeps: return the depmiss info to the frontend in case of failure 2006-01-21 18:28:38 +00:00
Aurelien Foret
2d08e902ef added a FAKEROOT define allowing to use pacman in a fakeroot enivronment (for tests purpose) 2006-01-21 16:50:01 +00:00
Aurelien Foret
cf94007aed more code cleanup yet 2006-01-18 22:37:16 +00:00
Aurelien Foret
c7bcaeb7e8 fixed detection for duplicate entries in list of deps/conflicts 2006-01-17 22:01:57 +00:00
Aurelien Foret
510d57b577 even more code cleanup 2006-01-17 21:18:33 +00:00
Aurelien Foret
719ff509c4 reworked log messages 2006-01-17 21:18:12 +00:00
Aurelien Foret
39b6d552c6 - code cleanup
- log improvements
2006-01-17 18:38:31 +00:00
Aurelien Foret
6e5a62dd12 more code cleanup 2006-01-16 22:27:09 +00:00
Aurelien Foret
6dd2ecf4fa pulled out conflict checkings from checkdeps() in its own function: checkconflicts() 2006-01-15 15:55:16 +00:00
Aurelien Foret
83839f9513 sync_prepare: added a missing chunk of code for dependency checks of packages elected for removal 2006-01-14 15:08:01 +00:00
Aurelien Foret
cb9d23baf8 checkdeps:
- merged missing chunks of code from pacman 2.9.7
- more debug logs
2006-01-14 15:05:59 +00:00
Aurelien Foret
aeb0133974 sysupgrade: skip version cmp for pkg elected for removal (patch from VMiklos <vmiklos@frugalware.org>) 2006-01-14 08:14:55 +00:00
Aurelien Foret
d42c6bdc49 removed unuseful error codes 2006-01-13 20:55:39 +00:00
Aurelien Foret
851dd3d16b improved log and debug messages 2006-01-13 20:46:01 +00:00
Aurelien Foret
1c9041814b added more doxygen comments (patch from VMiklos <vmiklos@frugalware.org>) 2006-01-11 21:44:11 +00:00
Aurelien Foret
36730a711b - added 2 more ORE tags (to be reviewed) in the replace/conflict sync code
- code cleanup
2006-01-11 12:56:38 +00:00
Aurelien Foret
0938d37b30 fixed an awfull typo 2006-01-11 09:43:40 +00:00
Aurelien Foret
540d3d49b2 code cleanup 2006-01-10 22:08:53 +00:00
Aurelien Foret
1704a00404 fixed a memory leak in the transaction cleanup code 2006-01-10 20:28:27 +00:00
Aurelien Foret
668e58626d added ALLDEPS transaction flag mainly to handle "makepkg -s" 2006-01-10 18:19:06 +00:00
Aurelien Foret
fd6ce1f4cb - merged pkg_new and pkg_dummy functions
- renamed _alpm_log_action to _alpm_logaction
2006-01-09 20:16:00 +00:00
Judd Vinet
45a7e57f6c cleanup 2006-01-08 22:07:31 +00:00
Judd Vinet
6866b8ce6f removed old/disable provides-conflict checking code 2006-01-08 22:06:19 +00:00
Judd Vinet
38180d5231 In the database-against-targets conflict checks, scan db packages' provides
fields and look for packages that want to exclusively provide a provisio that
the target package also provides.
2006-01-08 21:58:27 +00:00
Aurelien Foret
77be3f53e9 removed all code related to PM_SYNC_TYPE_DEPEND 2006-01-07 20:05:10 +00:00
Aurelien Foret
86e5c8bc06 sync_commit can now return conflicting files with a trans_prepare like data structure (patch from VMiklos <vmiklos@frugalware.org>) 2006-01-07 18:42:44 +00:00
Aurelien Foret
e405204915 removed a restriction: the data parameter of XXX_prepare functions can be NULL 2006-01-07 18:25:28 +00:00
Aurelien Foret
02694534be Fixed a regression in the conflict handling code 2006-01-07 18:01:26 +00:00
Aurelien Foret
bde9d69636 added more debug logs in the sync conflict/replace code 2006-01-07 17:59:26 +00:00
Aurelien Foret
74b3e0dcae removed handle/uid checks (CYGWIN) 2006-01-07 10:03:18 +00:00
Aurelien Foret
f3a4197e34 code cleanup (mainly removed line spaces at the beginning of lines by tabulations) 2006-01-07 09:42:48 +00:00
Aurelien Foret
6c3657b702 removed a misleading PM_ERR_XXX occurrence 2006-01-06 23:26:02 +00:00
Aurelien Foret
db8a5e3586 - sync: populates *data when a conflict can't be resolved
- add: code cleanup
2006-01-06 22:58:01 +00:00
Aurelien Foret
c2b27b5880 removed ORE tags (after tests, no real performance increase by implementing them) 2006-01-06 22:35:26 +00:00
Aurelien Foret
45720f32e9 fixed the usage of 4 list_is_in calls (should have been list_is_strin) 2006-01-06 20:47:26 +00:00
Aurelien Foret
2c22045ba8 - fixed a regression with pacman 2.x (reworked patch from VMiklos <vmiklos@frugalware.org>):
if pacman is desiganted as a target in a sysupgrade operation, it should be able to upgrade itself first upon user request.
- removed uneeded sanity checks in alpm interface calls
- replaced printf by MSG in pacman
2006-01-06 14:00:03 +00:00
Aurelien Foret
5fc2e009dc - started to rename list_XXX calls to _alpm_list_XXX
- fixed 2 compilation warnings
2006-01-05 21:49:42 +00:00
Aurelien Foret
ef8bbd2ac4 various code cleanup 2006-01-05 21:29:36 +00:00
Aurelien Foret
522b407687 tweaked a log (patch from VMiklos <vmiklos@frugalware.org>) 2006-01-05 20:56:12 +00:00
Aurelien Foret
7858f4c9b4 - fix for sync conflicts (patch from VMiklos <vmiklos@frugalware.org>)
- sync code cleanup
- added the deps check for targets to be removed in sync_prepare()
2006-01-05 20:53:41 +00:00
Aurelien Foret
4819d21c74 terminated .lastupdate implementation for HTTP protocol 2006-01-05 19:37:54 +00:00
Aurelien Foret
9d55476c9c added .lastudate support for HTTP protocol
known limitation: do not work when connected to some web servers (lighttpd)
2006-01-04 23:52:26 +00:00
Aurelien Foret
9ad7b1a4a8 fixed a segfault in removdeps
updated removedeps to keep in sync with pacman 2.9.x
2006-01-02 23:13:42 +00:00
Aurelien Foret
f48aced5b2 code cleanup 2006-01-02 21:33:58 +00:00
Aurelien Foret
5839652c41 code cleanup 2006-01-02 20:28:46 +00:00
Judd Vinet
96de3501ab patch from VMiklos - use PACKAGE_VERSION instead of PACMAN_VERSION 2006-01-02 19:55:35 +00:00
Aurelien Foret
656a887d35 more sanity checks: do not add or remove databases while a trasaction is running 2006-01-02 16:20:50 +00:00
Aurelien Foret
316cd2b573 code cleanup 2006-01-02 16:20:01 +00:00
Aurelien Foret
db0df44598 code cleanup 2006-01-02 13:26:30 +00:00
Aurelien Foret
cd2daa5189 fixed possible memory corruption 2006-01-02 13:15:08 +00:00
Aurelien Foret
64055e0f74 fixed various memory leaks 2006-01-02 13:14:00 +00:00
Aurelien Foret
d7f4350c29 fixed a typo 2006-01-02 13:01:58 +00:00
Aurelien Foret
d2ce54df86 code cleanup 2006-01-02 12:46:28 +00:00
Aurelien Foret
ee5625ae67 fixed a possible memory leak 2006-01-02 12:19:22 +00:00
Aurelien Foret
07a38db48d fixed a possible memory corruption 2006-01-02 10:16:27 +00:00
Aurelien Foret
15bc6e5508 removed some overlapping pm_errno assignments 2006-01-01 12:42:33 +00:00
Aurelien Foret
55a76279c5 - fixed a regression with pacman 2.x (patch from VMiklos <vmiklos@frugalware.org>)
- code reowrk to ensure the /tmp/alpm_foo directory is always removed
2006-01-01 12:20:36 +00:00
Aurelien Foret
922bab599f added a debug log when freeing the package cache 2005-12-31 16:54:57 +00:00
Aurelien Foret
7df7ca1738 Allowed C++ usage (patch from VMiklos <vmiklos@frugalware.org>) 2005-12-28 10:38:12 +00:00
Aurelien Foret
a1b005d239 Fixed a typo (spelling) fix (patch from VMiklos <vmiklos@frugalware.org>) 2005-12-28 10:31:23 +00:00
Aurelien Foret
cc1c5b163b Fixed some logging issues (patch from VMiklos <vmiklos@frugalware.org>) 2005-12-28 10:27:01 +00:00
Aurelien Foret
b062a21d2e Fixed some memory leaks (patch from Essien Ita Essien <essiene@datavibe.net>) 2005-12-28 10:15:55 +00:00
Judd Vinet
6bd15469b1 renamed rpmvercmp to versioncmp, added some fixes from isteve@bofh.cz 2005-12-26 16:48:37 +00:00
Judd Vinet
58c9d5d663 applied first try at sync conflict handling (VMiklos) plus a couple changes 2005-12-26 06:40:29 +00:00
Judd Vinet
326c66f0ca patch from VMiklos: regarding the documentation, groups have to be renamed from foo to alpm_foo 2005-12-19 23:32:16 +00:00
Judd Vinet
f762464630 added Doxyfile 2005-11-21 22:14:32 +00:00
Aurelien Foret
04424f5e89 fixed a file descriptor leak 2005-11-09 21:50:47 +00:00
Aurelien Foret
bf865c2da5 cleanup 2005-11-07 13:01:10 +00:00
Aurelien Foret
fffe7a8ef4 fixed wrong prototype usage for trans_new() 2005-11-07 13:00:22 +00:00
Aurelien Foret
2e559ba431 added a FREESYNC macro to release pointers to pmsyncpkg_t structures 2005-11-07 12:59:29 +00:00
Aurelien Foret
b2df466ffd fixed compilation warnings 2005-11-07 12:57:33 +00:00
Aurelien Foret
6a2230dce1 added more pm_errnos 2005-11-07 09:43:25 +00:00
Aurelien Foret
414d6d83c9 Used the chroot syscall instead of the chroot binary
(patch from Christian Hamaer <krics@linuxforum.hu>)
2005-11-05 19:21:25 +00:00
Aurelien Foret
5d5d7d6339 do not free the cache right before using it! 2005-10-22 08:29:12 +00:00
Judd Vinet
fa627d4776 bugfix: before searching databases for a dependency, make sure one of the packages in the final list doesn't already provide that dependency 2005-10-21 19:55:24 +00:00
Judd Vinet
cebc7ace60 fixed a segfault that occured in special cases when propagating requiredby fields during package replacements 2005-10-21 18:53:40 +00:00
Judd Vinet
69530cd3d9 added INFRQ_DESC back to the package cache so the group cache will work 2005-10-20 20:11:30 +00:00
Aurelien Foret
2b43f98366 added alpm.h to delivery targets (Jason) 2005-10-20 18:57:33 +00:00
Judd Vinet
1b4ce12672 added patch to use the system memcpy for md5 stuff 2005-10-18 18:47:10 +00:00
Judd Vinet
a1526a3e7d added first part of the autoconf stuff - patch from Christian Hamar <krics@linuxforum.hu> 2005-10-17 18:52:43 +00:00
Aurelien Foret
609466fdeb added PM_OPT_CACHEDIR library option 2005-10-10 20:41:35 +00:00
Aurelien Foret
a7af06ce86 removed a leftover comment 2005-10-10 15:08:36 +00:00
Aurelien Foret
6b7b9787d5 - more sanity checks
- alpm_pkg_free can now return an error code
2005-10-10 15:03:35 +00:00
Aurelien Foret
5d61a44759 Fixed EVENT and QUESTION macros 2005-10-10 10:19:02 +00:00
Aurelien Foret
8a53d5a3d7 Fixed missing parameter in trans_init() call 2005-10-10 10:14:13 +00:00
Judd Vinet
b3450fbe0d removed debug stmt 2005-10-09 18:48:39 +00:00
Judd Vinet
586370b744 started some doxygen comment blocks 2005-10-09 07:42:06 +00:00
Judd Vinet
a36ded25eb added conversation callback support for transactions 2005-10-09 06:09:57 +00:00
Judd Vinet
9a4719d3c5 fixed a segfault w/ the skiplist 2005-10-09 04:25:04 +00:00
Judd Vinet
6f75de92b5 added more error messages, enabled the db permission check in trans_commit 2005-10-08 23:40:49 +00:00
Aurelien Foret
79a20cdc96 Added an error string for lock file creation failure 2005-10-08 22:17:46 +00:00
Aurelien Foret
8ffb82a691 Code update to make use of PKG_FULLNAME_LEN 2005-10-08 21:36:47 +00:00
Aurelien Foret
05ab859eab Reworked the cache handling to only load DEPENDS info by default 2005-10-08 21:32:14 +00:00
Aurelien Foret
0d6a2edaa8 Moved the REPLACES and FORCE package fields from DESC to DEPENDS db entry 2005-10-08 20:43:25 +00:00
Judd Vinet
5ef51b3e26 Merging in recent fixes/additions from 2.9.7 2005-10-07 23:29:49 +00:00