1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-10 11:35:00 -05:00
Commit Graph

123 Commits

Author SHA1 Message Date
Aurelien Foret
9d4713e2a3 checkmd5sums enhancements 2006-02-20 20:55:53 +00:00
Aurelien Foret
be39f49a54 prepend library function names with _alpm (helped with the patch from VMiklos <vmiklos@frugalware.org>)
added log and event callbacks to sync_commit internal transactions
2006-02-17 22:35:26 +00:00
Aurelien Foret
58a7e85534 - db_write: add support to write both local and sync entries
- code cleanup
2006-02-16 21:02:39 +00:00
Aurelien Foret
dc0bacf18c removed a leftover comment 2006-02-15 22:55:54 +00:00
Aurelien Foret
6e76fd8af3 - merged db_open and db_create into one single function
- moved the .lastupdate support to the frontend
2006-02-15 22:51:28 +00:00
Aurelien Foret
5aa5142815 error codes cleanup 2006-02-07 22:01:50 +00:00
Aurelien Foret
298c1a8e97 added alpm_pkg_checkmd5sum() to check md5sums for package from the cache 2006-02-05 09:57:29 +00:00
Aurelien Foret
325e3b6b98 added a pmconflict_t structure to handle file conflicts 2006-02-05 09:27:26 +00:00
Aurelien Foret
54de80b1ea doxygen support: added @brief field (patch from VMiklos <vmiklos@frugalware.org>) 2006-02-01 17:58:02 +00:00
Aurelien Foret
173d18f3f8 Added a missing trans_release call upon lib shutdown (patch from VMiklos <vmiklos@frugalware.org>) 2006-02-01 06:40:53 +00:00
Aurelien Foret
1042f1e7ce removed unlock code from alpm_release() 2006-01-29 16:53:16 +00:00
Aurelien Foret
831ff882ae reworked lock handling (patch from VMiklos <vmiklos@frugalware.org>) 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
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
1c9041814b added more doxygen comments (patch from VMiklos <vmiklos@frugalware.org>) 2006-01-11 21:44:11 +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
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
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
4819d21c74 terminated .lastupdate implementation for HTTP protocol 2006-01-05 19:37:54 +00:00
Aurelien Foret
5839652c41 code cleanup 2006-01-02 20:28:46 +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
Judd Vinet
6bd15469b1 renamed rpmvercmp to versioncmp, added some fixes from isteve@bofh.cz 2005-12-26 16:48:37 +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
Aurelien Foret
bf865c2da5 cleanup 2005-11-07 13:01:10 +00:00
Aurelien Foret
5d5d7d6339 do not free the cache right before using it! 2005-10-22 08:29:12 +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
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
6f75de92b5 added more error messages, enabled the db permission check in trans_commit 2005-10-08 23:40:49 +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
79031ccd1a patch from vmiklos -- properly remove each db entry instead of rmrf'ing the whole thing 2005-10-07 16:38:17 +00:00
Aurelien Foret
af15744967 Applied reworked patch from VMiklos (vmiklos@frugalware.org)
Close the lock file descriptor upon handle release
2005-10-05 21:50:58 +00:00
Judd Vinet
a2192570fb changed license package field to a list 2005-07-22 01:59:11 +00:00
Aurelien Foret
a26095f8fc event transaction callback rework to prepare the introduction of a conversation callback 2005-05-04 19:55:23 +00:00
Aurelien Foret
f3975acf90 code cleanup 2005-05-03 17:44:53 +00:00
Aurelien Foret
54f6a1cb12 make use of the new list_remove implementation 2005-05-03 17:43:02 +00:00
Aurelien Foret
a93521aca3 do not register an already registered db 2005-05-02 17:54:44 +00:00
Aurelien Foret
7c04fe95ac added support for the package reason field 2005-04-24 20:11:10 +00:00
Aurelien Foret
abbb2cfcf0 code cleanup 2005-04-24 18:58:34 +00:00
Aurelien Foret
348cb923c7 renamed list_is_ptrin() in list_is_in() 2005-04-23 08:28:13 +00:00
Aurelien Foret
447885fdc3 code beautifying 2005-04-20 20:50:17 +00:00
Aurelien Foret
49d2cdc2f9 fixed args order in list_is_ptrin() 2005-04-20 19:41:33 +00:00
Aurelien Foret
6e5bbdb544 - general cleanup
- added alpm_trans_sysupgrade() function
- relocated some defines
2005-04-16 22:23:28 +00:00
Aurelien Foret
2669dfeb60 replaced a call to list_free by the macro FREELIST 2005-04-13 20:00:05 +00:00
Aurelien Foret
70481b0ee1 reworked alpm_db_readpkg 2005-04-08 20:42:27 +00:00
Aurelien Foret
e59e963f1f reverted back to trans->packages instead of install and remove queues 2005-04-06 21:00:57 +00:00
Aurelien Foret
3b49720e39 updated structure names (PM_SYNCPKG), and added transaction queues (install & remove) 2005-04-06 18:29:17 +00:00
Aurelien Foret
80bae750cd - added 'lastupdate' field to pmdb_t
- added a new public function alpm_db_getinfo
- added a public parameter PM_PKG_DB for PM_PKG struct
2005-04-02 23:20:00 +00:00
Aurelien Foret
1c28e29eb4 added support for PACKAGES field in alpm_trans_getinfo 2005-04-02 20:33:11 +00:00
Aurelien Foret
b009c5bafa checked for db_update() archive existence 2005-03-29 22:19:11 +00:00
Aurelien Foret
cca46deb6f changed alpm_db_register() prototype 2005-03-29 20:52:22 +00:00
Aurelien Foret
95ea99e197 Turned pmdepmissing_t into an opaque structure 2005-03-29 20:31:03 +00:00
Aurelien Foret
6063424c82 Replaced snprintf calls by the SNPRINTF macro to avoid buffer overflows when copying strings 2005-03-29 17:18:59 +00:00
Aurelien Foret
56917dc304 improved logs (use _alpm_log instead of fprintf) 2005-03-28 08:21:17 +00:00
Aurelien Foret
9c17eb88f0 improved log message for alpm_db_update 2005-03-28 07:50:30 +00:00
Aurelien Foret
0ef95757d6 added a FREELISTPTR macro to free a PMList without freeing its data 2005-03-28 07:45:24 +00:00
Aurelien Foret
bcfc1244b4 updated comments 2005-03-26 08:50:27 +00:00
Aurelien Foret
4a5c607258 cleanup for add_loadtarget() logs 2005-03-24 21:48:06 +00:00
Aurelien Foret
b232126e50 removed leftover debug printf 2005-03-23 19:06:44 +00:00
Aurelien Foret
8179f7cbaa - added db_setlastupdate to db.c
- moved db_update from db.c to alpm.c
2005-03-22 20:14:49 +00:00
Aurelien Foret
72c2439576 Added support for .lastupdate files (from pacman 2.9.1) 2005-03-20 09:22:03 +00:00
Aurelien Foret
bddea378b9 Rework for fixed length strings 2005-03-19 18:15:31 +00:00
Aurelien Foret
c0f681a0ae One more sanity check, and one more ORE tag 2005-03-18 18:33:55 +00:00
Aurelien Foret
7a01ed50b9 Removed hardcoded reference to fields of packages 2005-03-16 22:57:12 +00:00
Aurelien Foret
d109550656 Renamed PM_RET_ERR to RET_ERR (no need for a PM_ prefix for internal
defines).
2005-03-16 22:10:05 +00:00
Aurelien Foret
04e195284e Code cleanup 2005-03-16 22:06:31 +00:00
Aurelien Foret
c583f03886 Added LOG_STR_LEN define to avoid hardcoded length for log strings 2005-03-16 19:50:57 +00:00
Aurelien Foret
606c70fdc9 Added a db_update() function to manage sync databases updates.
The API provides a wrapper alpm_db_update().
2005-03-16 19:31:20 +00:00
Aurelien Foret
5faecdb523 Renamed PACXXX defines to PM_XXX 2005-03-16 19:18:09 +00:00
Judd Vinet
d04baabafa Initial revision 2005-03-15 01:51:43 +00:00