Aaron Griffin
4470e5ce01
* Numerous mini valgrind fixes.
...
* Addition of hacky architecture check in the _splitname function
* Removal of libfetch from the archlinux proper - it has been renamed to
libdownload and can be found at http://phraktured.net/libdownload
* Merge of _some_ of the Frugalware makepkg change - this may still be
incomplete
* Removal of libftp from cvs proper
* PKGBUILD manpage now says 'PKGBUILD' instead of FrugalBuild (he he)
2006-11-14 07:58:42 +00:00
Aaron Griffin
af2fb3324a
Numerous changes:
...
* Furthered the "lazy caching" to force the pkgcache to read nothing
(INFRQ_NONE) by default. Anything requiring package data should now check
the infolevel of each package and attempt to update it. This could be
ironed out a bit more later (by using the front-end get_info function
* Switched to libfetch. Drastic changes to the download code and the callback
progress bar functions. Also fixed the return value of
_alpm_downloadfiles_forreal. Downloading now supports http, ftp, https, and
files urls, along with 'mtime's and numerous other fancy features from
libfetch.
2006-10-31 06:39:59 +00:00
Aaron Griffin
1568fd98d8
Minor changes:
...
* Moved the pmhandle_t extern decl around
* Fixed a doxygen complaint
2006-10-21 01:27:35 +00:00
Aaron Griffin
7131b7ac87
A handful of minor changes:
...
* Removed the PMList typedef, in favor of the same naming scheme other
structs use 'pmlist_t'
* Added a time stamp on debug output, to make it more informational
* Moved alpm_db_register to _alpm_db_register, making the public function
not take a callback parameter
2006-10-20 06:26:55 +00:00
Aaron Griffin
cab295b9f5
Yet another "added three times" issue.
2006-10-19 15:05:41 +00:00
Aaron Griffin
b449761a8b
Removed extra includes
2006-10-16 22:25:53 +00:00
Aaron Griffin
ac30eb2c1e
Applied Frugalware patch from Christian Hamar alias krix <krics@linuxforum.hu>
...
for file-conflict progress bar
Also did some CVS cleanup, removing some of the autogenerated files that
shouldn't have been there
2006-10-15 23:54:43 +00:00
Aaron Griffin
d37ad04873
Merged frugalware changes (too many to list). Also added some config file
...
handling changes (support [sections] to carry over to included files - this
helps with backwards compatibility with existing pacman config files)
2006-10-15 19:31:03 +00:00
Judd Vinet
cf6da173f6
removed libtar support in favour of libarchive
2006-09-28 20:51:33 +00:00
Judd Vinet
54008798ef
Patch from FW: Better control over CTRL-C interruptions -- do not leave the DB in an inconsistent state
2006-07-14 23:15:07 +00:00
Judd Vinet
bb787e26ee
first stage of i18n stuff from VMiklos
2006-05-15 02:19:57 +00:00
Aurelien Foret
8f12ce618c
fixed reason loading if the pkg cache is loaded with DEPENDS only
2006-03-07 18:44:50 +00:00
Aurelien Foret
27be34c09b
added a NOSCRIPLET flag to transactions (patch from VMiklos <vmiklos@frugalware.org>)
2006-03-07 18:17:03 +00:00
Aurelien Foret
e2faeb46e1
reworked the db object to prepare future integration with different backends
2006-03-02 19:06:52 +00:00
Aurelien Foret
590f610d6b
dropped the MALLOC macro
2006-02-20 20:41:40 +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
fbea96fd72
code cleanup
2006-02-16 21:07:59 +00:00
Aurelien Foret
2e94c34b05
added a add_faketarget function
...
reworked logs
2006-02-12 09:43:10 +00:00
Aurelien Foret
3997c31ff1
reworked debug messages
2006-02-11 19:06:40 +00:00
Aurelien Foret
b824ee9608
added more logs
2006-02-11 09:42:52 +00:00
Judd Vinet
f3c5f9b4d1
Search through package provides if no literal matches are found when scanning for targets with -S
2006-01-28 04:48:51 +00:00
Aurelien Foret
cb96945180
improved log messages for add_commit
2006-01-27 19:21:00 +00:00
Aurelien Foret
819c265cdb
fixed a compilation warning
2006-01-26 22:18:07 +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
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
0938d37b30
fixed an awfull typo
2006-01-11 09:43:40 +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
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
db8a5e3586
- sync: populates *data when a conflict can't be resolved
...
- add: code cleanup
2006-01-06 22:58:01 +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
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
cc1c5b163b
Fixed some logging issues (patch from VMiklos <vmiklos@frugalware.org>)
2005-12-28 10:27:01 +00:00
Judd Vinet
6bd15469b1
renamed rpmvercmp to versioncmp, added some fixes from isteve@bofh.cz
2005-12-26 16:48:37 +00:00
Aurelien Foret
04424f5e89
fixed a file descriptor leak
2005-11-09 21:50:47 +00:00
Aurelien Foret
8a53d5a3d7
Fixed missing parameter in trans_init() call
2005-10-10 10:14:13 +00:00
Judd Vinet
9a4719d3c5
fixed a segfault w/ the skiplist
2005-10-09 04:25:04 +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
Judd Vinet
5ef51b3e26
Merging in recent fixes/additions from 2.9.7
2005-10-07 23:29:49 +00:00
Aurelien Foret
4ee51bdf46
Added a CYGWIN define to include header files required to build in a Cygwin environment
2005-10-06 07:28:30 +00:00
Aurelien Foret
de5e40bcd8
code cleanup
2005-05-04 21:21:51 +00:00
Aurelien Foret
3a9a203c46
reordered operations in add_commit (as in pacman 2.9.x)
2005-05-04 21:06:03 +00:00
Aurelien Foret
f78f195235
code cleanup
2005-05-04 20:07:01 +00:00
Aurelien Foret
a2b0748b2b
code cleanup
2005-05-04 20:05:30 +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
251e52cea7
fixed a small memory leak with md5sums handling
2005-05-03 16:46:18 +00:00
Aurelien Foret
2cc81d9eea
code cleanup
2005-05-02 07:42:32 +00:00
Aurelien Foret
246f9f24a2
removed the extra line feed appended by asctime()
2005-05-02 06:29:59 +00:00
Aurelien Foret
0756af675d
- rework to support pacman_deptest()
...
- code cleanup
2005-05-01 20:46:15 +00:00
Aurelien Foret
7c04fe95ac
added support for the package reason field
2005-04-24 20:11:10 +00:00
Aurelien Foret
bcd41a4a3d
removed deprecated comments in add_commit()
2005-04-24 11:14:50 +00:00
Aurelien Foret
e2b474b130
rework the cache handling to avoid as much as possible calls to db_scan()
2005-04-23 17:18:31 +00:00
Aurelien Foret
77520f9d43
avoided a call to db_scan()
2005-04-20 19:40:33 +00:00
Aurelien Foret
cd26093b06
add_loadtarget: load package info only when needed
2005-04-17 10:02:47 +00:00
Aurelien Foret
89f0ccc3cc
reworked transaction prototypes
2005-04-16 16:42:43 +00:00
Aurelien Foret
45c7e10afc
updated a log
2005-04-13 19:57:23 +00:00
Aurelien Foret
405d3c9a9f
fixed a potential segfault
2005-04-08 19:22:00 +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
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
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
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
4d21e4f721
started the work on "pacman_sync"
2005-03-30 22:32:43 +00:00
Aurelien Foret
73c6779067
removed an uneeded call to db_scan
2005-03-29 22:18:00 +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
0ef95757d6
added a FREELISTPTR macro to free a PMList without freeing its data
2005-03-28 07:45:24 +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
7767095c59
backport from pacman 2.9.5 (formatting, commentaries)
2005-03-26 20:24:57 +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
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
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
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
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
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
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