1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-01-10 13:28:12 -05:00
pacman/lib/libalpm
Dan McGee 204bbc4714 libalpm/dload: add allow_resume and reorder error checks
The allow_resume is the start of the fix to the "don't ever resume
database downloads" problem, as well as being useful for '.sig'
downloads as well. For now, we say "always allow resume", but this will
eventually get pushed down as necessary.

Error checks are reworked in order to correctly error out when a file is
not found on the remote end and reports 0 bytes downloaded. In addition,
the two error messages printed are now different as one reports a more
specific error message provided via the cURL error buffer.

Some example output from an -Sy run with [testing], [community],
[community2], [eee], and [nonexistant] defined as repos. [community2]
and [nonexistant] are both invalid, one using FTP and one using HTTP.

    :: Synchronizing package databases...
    testing is up to date
    community is up to date
    error: failed retrieving file 'community2.db' from ftp.archlinux.org : Given file does not exist
    error: failed to update community2 (FTP: couldn't retrieve (RETR failed) the specified file)
    eee is up to date
    error: failed retrieving file 'nonexistant.db' from code.toofishes.net : The requested URL returned error: 404
    error: failed to update nonexistant (HTTP response code said error)

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-22 17:08:33 -05:00
..
po 3.5.2 translation updates from Transifex 2011-04-18 11:26:20 -05:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
add.c cleanup: add_pkg() and remove_pkg() 2011-04-22 15:58:34 -05:00
add.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
alpm_list.c Header inclusion cleanup 2011-04-20 20:09:13 -05:00
alpm_list.h Add new alpm_list_remove_item() function 2011-02-04 09:55:46 +10:00
alpm.c Merge branch 'maint' 2011-03-24 21:18:09 -05:00
alpm.h alpm.h: add several missing documentation strings 2011-04-21 07:45:27 +02:00
backup.c Style change: return(x) --> return x 2011-03-20 19:49:45 -05:00
backup.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
base64.c Add base64 algorithms from PolarSSL to libalpm 2011-03-23 02:22:00 -05:00
base64.h Add base64 algorithms from PolarSSL to libalpm 2011-03-23 02:22:00 -05:00
be_local.c Header inclusion cleanup 2011-04-20 20:09:13 -05:00
be_package.c Form the signature file location in one place 2011-04-20 20:10:27 -05:00
be_sync.c be_sync: use _alpm_db_get_sigverify_level() 2011-04-22 15:58:09 -05:00
conflict.c Unify filelist operation functions in conflict checking 2011-03-30 20:20:16 -05:00
conflict.h Conflict checking code cleanup 2011-02-16 20:57:07 -06:00
db.c Rename gpgsig struct fields for clarity 2011-04-20 20:11:26 -05:00
db.h Add functions for verifying database signature 2011-03-23 22:22:33 -05:00
delta.c Style change: return(x) --> return x 2011-03-20 19:49:45 -05:00
delta.h Include "config.h" in header files using off_t 2011-04-15 18:40:32 -05:00
deps.c syntax: if/while statements should have no trailing space 2011-04-20 19:47:39 -05:00
deps.h Ensure reported missing dependencies show correct version comparison 2011-03-25 15:43:08 -05:00
diskspace.c syntax: if/while statements should have no trailing space 2011-04-20 19:47:39 -05:00
diskspace.h diskspace: allow used flag to be toggled for both remove and install 2011-02-11 10:51:59 -06:00
dload.c libalpm/dload: add allow_resume and reorder error checks 2011-04-22 17:08:33 -05:00
dload.h libalpm/dload: const and static correctness 2011-04-22 15:58:19 -05:00
error.c Integrate GPGME into libalpm 2011-03-23 03:16:29 -05:00
graph.c Move graph.h functions into graph.c 2011-04-15 18:36:53 -05:00
graph.h Include "config.h" in header files using off_t 2011-04-15 18:40:32 -05:00
group.c Header inclusion cleanup 2011-04-20 20:09:13 -05:00
group.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
handle.c handle.c: force sigverify level not to be PM_PGP_VERIFY_UNKNOWN 2011-04-21 12:14:23 -05:00
handle.h Allow VerifySig to act as a default verification in [options] 2011-04-20 19:42:01 -05:00
log.c Header inclusion cleanup 2011-04-20 20:09:13 -05:00
log.h Mark log callback format string const 2011-02-24 09:38:59 -06:00
Makefile.am Move graph.h functions into graph.c 2011-04-15 18:36:53 -05:00
md5.c libalpm md5: use larger and dynamic buffer 2010-09-02 10:33:21 -05:00
md5.h libalpm/md5: Fix license header 2008-06-03 21:31:31 -05:00
package.c Rename gpgsig struct fields for clarity 2011-04-20 20:11:26 -05:00
package.h Include "config.h" in header files using off_t 2011-04-15 18:40:32 -05:00
pkghash.c style cleanup: cast as (type *) not (type*) 2011-04-20 19:04:53 -05:00
pkghash.h alpm: remove public visibility of pmpkghash_t 2011-02-25 09:45:13 -06:00
remove.c cleanup: add_pkg() and remove_pkg() 2011-04-22 15:58:34 -05:00
remove.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
signing.c Rename gpgsig struct fields for clarity 2011-04-20 20:11:26 -05:00
signing.h Rename gpgsig struct fields for clarity 2011-04-20 20:11:26 -05:00
sync.c sync.c: remove unnecessary check for PM_PGP_VERIFY_UNKNOWN 2011-04-21 12:14:34 -05:00
sync.h Update copyright years for 2011 2011-01-07 18:47:37 -06:00
trans.c Header inclusion cleanup 2011-04-20 20:09:13 -05:00
trans.h Remove trans->skip_add 2011-02-22 16:48:51 -06:00
util.c Header inclusion cleanup 2011-04-20 20:09:13 -05:00
util.h Merge branch 'maint' 2011-03-29 12:21:07 -05:00
version.c Style change: return(x) --> return x 2011-03-20 19:49:45 -05:00