aboutsummaryrefslogtreecommitdiffstats
path: root/src/fetch.c
Commit message (Collapse)AuthorAgeFilesLines
* fetch: ignore conflicts when solving --recursive fetchesTimo Teräs2018-06-141-1/+1
|
* fetch: include install_if dependencies with --recursiveNatanael Copa2018-06-141-26/+23
| | | | | | Run apk_solver_solve once with all args as dependencies instead of running apk_solver_solve for each arg. This is neccesary so the install_if calculation is done correctly.
* apk: usage: cleanup help text when no applet is selectedWilliam Pitcock2018-01-091-0/+1
|
* split --force to several --force-[type] optionsTimo Teräs2018-01-031-2/+1
| | | | | | | | | This unloads --force as several of the things are really not wanted together. E.g. --force-refresh is a lot different from --force-broken-world and doing --force to get the other might introduce unwanted behaviour. --force is still kept for backwards compatibility and it enables most things --force was used for.
* fetch: print additional error diagnostics in verbose modeTimo Teräs2017-11-281-2/+5
|
* io: make io vtables const struct, and add accessors for themTimo Teräs2017-06-231-2/+2
| | | | | This reduces function pointers in heap, and unifies how the io functions are called.
* fetch: spell "its" properly in user visible messagereaderreader2017-04-251-1/+1
|
* fetch: open the installed database to allow fetching a dependency tree ↵William Pitcock2017-04-251-2/+1
| | | | rooted by a virtual
* fetch: don't segfault when given an unknown package nameWilliam Pitcock2017-04-251-1/+2
|
* fetch: fix --recursive mode to work with pure virtual packagesTimo Teräs2017-02-271-1/+12
| | | | | The virtual package provider still needs to be explicitly given on command line.
* fetch: allow enabling --simulateTimo Teräs2016-02-161-2/+3
|
* implement fetch --purgeTimo Teräs2016-02-161-0/+36
| | | | | | | | which will delete any .apk package on output directory that were not downloaded by fetch this allows apk fetch to incrementally build repositories for binary images
* io, database: preserve [am]time for cached and fetched filesTimo Teräs2015-11-091-2/+6
| | | | | | | | | | | preserve [am]time for all packages and indexes. this fixes the caching error that 'apk update' is after new index is generated, but before the used mirror is synchronized. this caused local apkindex timestamp to be newer than file in mirror, when in fact it was outdated index. this also fixes fetched files to have build timestamp so that files going to .iso or custom images have proper timestamps (rsync with appropriate --modify-window now works)
* rename file info related functions for consistencyTimo Teräs2015-03-101-1/+1
|
* rework error handling for read streamsTimo Teräs2015-03-101-2/+2
|
* make del, fetch, fix and info return errorsTimo Teräs2014-12-081-6/+17
| | | | | | In case all applet arguments are packages names (that is are not including wildcards), return error if they do not match to some package.
* rework option parsing to have a group structureTimo Teräs2014-10-081-15/+19
| | | | | Add also a new 'commit' group that is the common options for all applets that can commit package changes.
* fetch: disable all progress/log output with --stdoutNatanael Copa2014-02-031-1/+3
|
* fetch: disable progress when outputting pkg to stdoutTimo Teräs2014-02-031-1/+4
|
* Revert "fetch: run quiet when --stdout"Natanael Copa2014-01-061-1/+0
| | | | This reverts commit a99bedba6fa66cc55b30575b32b1359e22cfefb5.
* fetch: run quiet when --stdoutNatanael Copa2013-12-101-0/+1
| | | | Prevent the progressbar and status messages to mess up stdout.
* various: applet help text and comment fixesDubiousjim2013-06-281-1/+1
| | | | Acked-by: Natanael Copa <ncopa@alpinelinux.org>
* applets: unify help message by removing final dotsTimo Teräs2013-06-191-3/+1
|
* fetch, del: perform wildcard matchingTimo Teräs2013-06-191-43/+51
| | | | ref #511
* print: move progress bar update logic to apk_print_progressNatanael Copa2013-06-191-5/+2
| | | | | | | | | | | | | | | | | | | - let the apk_print functions deal with the forced print itself. We avoid that the callbacks need to deal with the force flag. We can also get rid of the APK_PRINT_PROGRESS_* defines. - let the reader of --progress-fd decide how often things are updated rather than having a fixed granularity off 1/100 (percent) - avoid detect screen size and percent/bar calculations in case the --no-progress was given - track satistics for both the ascii bar and percent info and update bar only if either percent or bar changes. This makes the bar go smoother when width is wider than 100 chars and it makes the percent counter go smooth when screen width is less thann 100 chars. It also simplifies the callbacks as they no longer need to deal with update granularity.
* apk: use string array in applet mains, separate apk_name_foreach_matchingTimo Teräs2013-06-181-6/+7
|
* fetch: implement progress (fixes #1170)Timo Teräs2013-06-171-44/+64
|
* db: refactor repository file constructionTimo Teräs2013-06-171-27/+34
| | | | | Fixes also 'fetch' applet to prefer copying/linking to files from cache if possible.
* solver: rewrite as deductive solver -- core featuresTimo Teräs2013-06-131-2/+2
| | | | | Implementing basic dependency handling, install_if and awareness of pinning.
* solver, test: make conflicts unconditionalTimo Teräs2012-02-291-1/+1
| | | | | | | Solver will now never report partial solution where a conflict constraint is not satisfied. The is because with --force we might install the partial solution; and if conflicted packages were to be installed we might have extra trouble.
* all: introduce apk_provides and use it in apk_nameTimo Teräs2012-02-241-3/+3
| | | | | | | in preparation for provides support. implements also some dependency satisfaction helper routines. ref #574.
* fetch: reimplement -R after solver changesTimo Teräs2011-09-161-17/+11
|
* all: update copyright year statementTimo Teräs2011-09-131-1/+1
|
* applets: start using solver codeTimo Teräs2011-09-091-2/+4
| | | | | | | | | still todo: - 'fix' is missing - 'del -R' does not work - 'upgrade' does not do self-upgrade first ... and a lot of testing.
* fetch: fix fetching of packages with archTimo Teräs2011-04-071-3/+1
|
* apk-tools-2.1.0_pre1v2.1.0_pre1Timo Teräs2011-03-291-4/+3
|
* fetch: fix package version printTimo Teräs2011-03-291-3/+4
| | | | | broke after making the version field an atom because the printf was not updated accordingly.
* various: fix breakage from converting dependency versions to atomsTimo Teräs2011-01-011-0/+1
| | | | | The version now needs to be initialized atom always, since it's dereferenced in various places.
* various: use O_CLOEXEC and add some error checkingTimo Teräs2010-06-111-5/+3
|
* First steps for libapkNatanael Copa2010-06-111-0/+1
|
* all: rework how arrays workTimo Teräs2010-06-051-5/+7
| | | | | | | | | | Instead of having a null pointer, use a dummy array which just says the array is empty. This helps in multiple places of the code which would otherwise need explicitly need to check first if the array exists. This has been cause of multiple seg.faults in the past as the array check is easily omitted. This also removes (or fixes) all existing checks accordingly.
* fetch: do not include installed non-repository files in searchTimo Teras2010-03-041-3/+5
| | | | | we do not create mirror repositories from other valid repositories, not from what was installed locally.
* db: prefer local repositories, and implement --no-networkTimo Teras2009-08-061-9/+7
| | | | this helps boots sequence when network is not available.
* all: implement database open optionsTimo Teras2009-08-061-14/+10
| | | | so user can override trusted keys directory and repositories file.
* fetch: --link is -L for short, not -lTimo Teras2009-08-051-1/+1
|
* state: fix world dependencies to be honored alwaysTimo Teras2009-08-041-0/+3
| | | | | | previously they might have been skipped on certain situations. this also fixes some other reverse dependency enforcements and implements new "pending" state for locked name.
* apk: use *at instead of chdir+normal file syscallTimo Teras2009-07-311-26/+28
| | | | | | | | this way we never change cwd, and relative filenames are always parsed consistently. this also helps filename construction in many places. this patch also changes '--root' to override location of all configuration to be in the new root. previously it depended on the file which one was used.
* add, fetch: make handling of special options more logicalTimo Teras2009-07-241-0/+44
|
* db: open flags revisitedTimo Teras2009-07-071-1/+1
| | | | | more fine grained control what to load, and rename some of the flags to be shorter.
* fetch: respect --simulate optionNatanael Copa2009-07-061-0/+3
|