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

2584 Commits

Author SHA1 Message Date
Aurelien Foret
e59e963f1f reverted back to trans->packages instead of install and remove queues 2005-04-06 21:00:57 +00:00
Aurelien Foret
4091aa1165 package 'reason' field should default to 0 2005-04-06 18:30:50 +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
04e054f3cb replaced transaction 'packages' field by 2 queues: one for packages to be installed and the other for the ones to be removed 2005-04-06 18:25:33 +00:00
Aurelien Foret
08b34b8aef added logs for cache generation 2005-04-05 17:21:08 +00:00
Aurelien Foret
a98c5c25b5 - added transaction flags for the removal of a package to be upgrade
- reworked some comments
2005-04-03 08:19:10 +00:00
Aurelien Foret
d9a96064ab reworked a log 2005-04-03 08:10:54 +00:00
Aurelien Foret
686e8eaeb5 more work to backport pacman_sync from pacman 2.9.5 2005-04-02 23:21:10 +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
a94c24c406 fixed a log level 2005-04-02 23:17:44 +00:00
Aurelien Foret
ffd3a6304d - updated transaction events
- the cache is rebuilt after each package installation (to be reworked)
2005-04-02 20:37:50 +00:00
Aurelien Foret
1c28e29eb4 added support for PACKAGES field in alpm_trans_getinfo 2005-04-02 20:33:11 +00:00
Aurelien Foret
c5418ebfbc reworked resolvedeps:
- used the cache instead of db_scan() calls
- improved log messages
- more sanity checks
2005-04-02 20:30:09 +00:00
Aurelien Foret
2bbf118842 added RESOLVEDEPS to the list of transaction events 2005-04-02 20:28:01 +00:00
Aurelien Foret
4d21e4f721 started the work on "pacman_sync" 2005-03-30 22:32:43 +00:00
Aurelien Foret
b009c5bafa checked for db_update() archive existence 2005-03-29 22:19:11 +00:00
Aurelien Foret
73c6779067 removed an uneeded call to db_scan 2005-03-29 22:18:00 +00:00
Aurelien Foret
c1b2f48abf fixed a log mask 2005-03-29 22:17:27 +00:00
Aurelien Foret
3bbfdf4ce8 backport from pacman 2.9.5 - chdir 2005-03-29 21:15:15 +00:00
Aurelien Foret
d30333756a put back 3 _alpm_log() calls 2005-03-29 20:58:43 +00:00
Aurelien Foret
23cd8d87cb put back 5 _alpm_log() calls 2005-03-29 20:54:47 +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
e5389ddc62 clearer string length for a strncpy call 2005-03-29 17:20:43 +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
3ac94cc719 maked use of db->path instead of handle->root+handle->dbpath+db->treename 2005-03-28 20:01:11 +00:00
Aurelien Foret
fd09a500d6 reworked dbpath handling to make it possible to use databases stored at different locations at the same time 2005-03-28 19:59:33 +00:00
Aurelien Foret
61231c9ba8 replaced occ of list_free() by FREELIST/FREELISTPTR macros 2005-03-28 08:25:33 +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
4ad99832b5 renamed temp files from pacman_XXXXXX to alpm_XXXXXX 2005-03-27 07:42:21 +00:00
Aurelien Foret
c0cf6c422d made 'provides' actually work when updating 'requiredby' fields from deps 2005-03-27 07:41:51 +00:00
Aurelien Foret
e39d05b31b - fixed a small memory leak
- took into account sliptdep returned value
2005-03-26 21:20:03 +00:00
Aurelien Foret
03f2ec2d0b rewrote list_free to not be recursive anymore
(it can trigger segmentation faults when freeing long lists)
2005-03-26 20:56:08 +00:00
Aurelien Foret
7767095c59 backport from pacman 2.9.5 (formatting, commentaries) 2005-03-26 20:24:57 +00:00
Aurelien Foret
d77f8be802 backport from pacman 2.9.5 (splitdep returns an int) 2005-03-26 20:23:03 +00:00
Aurelien Foret
7f46a9c442 reworked PM_LOG_XXX messages during install/remove/upgrade operations 2005-03-26 18:03:36 +00:00
Aurelien Foret
43f4505b1e More backport from pacman 2.9.5 (mainly for resolvedeps) 2005-03-26 13:29:47 +00:00
Aurelien Foret
10b0e0d9af Backport from pacman 2.9.5 2005-03-26 09:00:49 +00:00
Aurelien Foret
3f165e1912 _alpm_runscriplet fixes 2005-03-26 08:54:28 +00:00
Aurelien Foret
bcfc1244b4 updated comments 2005-03-26 08:50:27 +00:00
Aurelien Foret
7c847fd7d4 Backport from pacman 2.9.5
- list_remove, list_check and list_reverse
- sortbydeps(mode)
2005-03-25 22:09:14 +00:00
Aurelien Foret
6e63ccfd0f backported fixes for trim() from pacman 2.9.5 2005-03-25 21:13:23 +00:00
Aurelien Foret
3b229d3a1a added a missing goto! 2005-03-25 06:39:00 +00:00
Aurelien Foret
ff16088b27 fix: one can't add a package twice in transaction targets list 2005-03-24 21:49:18 +00:00
Aurelien Foret
4a5c607258 cleanup for add_loadtarget() logs 2005-03-24 21:48:06 +00:00
Aurelien Foret
5e2a2637c8 removed duplicated prototype 2005-03-24 21:39:20 +00:00
Aurelien Foret
cad41d7e8a - removed db_find_conflicts() declaration from db.h
- included conflict.h from add.c
2005-03-23 20:06:58 +00:00
Aurelien Foret
b232126e50 removed leftover debug printf 2005-03-23 19:06:44 +00:00
Aurelien Foret
221bda7972 moved db_find_conflicts from db.c to conflict.c 2005-03-22 20:21:12 +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
1b7b6e47a1 replaced rewinddir() calls by db_rewind() 2005-03-20 14:21:19 +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
0a072b57c5 Removed an hardcoded string length 2005-03-19 17:56:22 +00:00
Aurelien Foret
0d69a4aeb0 Removed an hardcoded string length 2005-03-19 17:55:57 +00:00
Aurelien Foret
4764f08852 Fixed some typo... 2005-03-18 18:36:29 +00:00
Aurelien Foret
3658d50727 Removed unuseful getuid() calls 2005-03-18 18:35:33 +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
d2ce029a58 Code reformatting 2005-03-16 21:56:02 +00:00
Aurelien Foret
ad4ab9e50c Bring back db_scan() modifications from pacman 2.9.1
(to cope with .lastupdate files in the db path)
2005-03-16 21:49:18 +00:00
Aurelien Foret
2ce1105900 - added PM_EXT_PKG and PM_EXT_DB defines to alpm.h (taken from pacman 2.9.3)
- renamed ALPM_VERSION to PM_VERSION
2005-03-16 20:59:14 +00:00
Aurelien Foret
d8cdd54a20 Moved log callback definition to alpm.h 2005-03-16 20:46:30 +00:00
Aurelien Foret
03558450c5 *** empty log message *** 2005-03-16 20:42:11 +00:00
Aurelien Foret
b8bd907dc9 New ORE tag 2005-03-16 20:25:38 +00:00
Aurelien Foret
22c0037a08 Added DB_TREENAME_LEN define to avoid hardcoded length for database string 2005-03-16 20:23:50 +00:00
Aurelien Foret
57df73517f One more ORE comment 2005-03-16 20:17:07 +00:00
Aurelien Foret
7c04b050ea Make sure we generate a UPGRADE_DONE event during upgrades 2005-03-16 20:09:10 +00:00
Aurelien Foret
b0f613c211 Removed the "__" prefix from __pm_logcb and __pm_logmask
Not needed for library internal data
2005-03-16 20:06:11 +00:00
Aurelien Foret
49415cb675 Added a missing argument in db_create() 2005-03-16 20:04:17 +00:00
Aurelien Foret
755a195e54 Fixed a typo 2005-03-16 20:00:25 +00:00
Aurelien Foret
2ad431515b Removed a leftover debug printf 2005-03-16 19:54:55 +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
fac045a958 Removed a hardcoded reference to the 'local' database in db_create() 2005-03-16 19:36:15 +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
Aurelien Foret
ba13bc8b7b Improved error handling in add_loadtarget() 2005-03-16 19:15:03 +00:00
Aurelien Foret
438f653ba6 Renamed PM_TRANS_CB_XXX to PM_TRANS_EVT_XXX 2005-03-15 18:41:02 +00:00
Aurelien Foret
518c333ee1 Fixed a typo in add_loadtarget() 2005-03-15 18:37:11 +00:00
Judd Vinet
d04baabafa Initial revision 2005-03-15 01:51:43 +00:00