aboutsummaryrefslogtreecommitdiffstats
path: root/src/package.c
Commit message (Collapse)AuthorAgeFilesLines
...
* digest: use oneshot context flag where approriateTimo Teras2009-07-171-17/+26
| | | | speeds up digest calculation on some cases.
* index: fix output file permissions, verify signed index (ref #46)Timo Teras2009-07-171-7/+18
|
* pkg: remove debug printsTimo Teras2009-07-171-1/+0
|
* pkg: fix index generationTimo Teras2009-07-171-4/+12
| | | | that got broke during verify implementation.
* verify: new applet (ref #46)Timo Teras2009-07-171-73/+172
| | | | an utility to check package signature and integrity.
* pkg: .PKGINFO field for data checksum is 'datahash'Timo Teras2009-07-161-1/+1
| | | | in future we might add datahashalg to specify the algorithm used.
* various: new style index generationTimo Teras2009-07-161-22/+71
| | | | | | change the index generation to do old index, or the new style index where package identity is sha1 of control block and it's contained within an .tar.gz to allow signing in future.
* gzip: always autoclose the inner streamTimo Teras2009-07-161-2/+6
|
* pkg: remove support for the deprecated .INSTALL scriptTimo Teras2009-07-161-14/+1
|
* cache: make cache cleaning work again properlyTimo Teras2009-07-151-0/+3
|
* pkg: fix package scanner to read whole archiveTimo Teras2009-07-151-2/+2
| | | | | otherwise we don't get chechksum anymore after the changes to support partial gzip checksumming.
* db: live with sha1 and md5Timo Teras2009-07-141-9/+10
| | | | this also convers scripts file to a tar archive.
* blob: some helpers to replace snprintfTimo Teras2009-07-141-28/+28
| | | | | snprintf is dog slow. make the blob stuff have some helper functions so we can use them in code paths that are executed often.
* bstream: make tokenizable and load index using bstreamTimo Teras2009-07-141-3/+3
| | | | some fixes on index reading code too.
* io: move csumming away from bstream to gunzipTimo Teras2009-07-131-5/+23
| | | | | in future we want to checksum on gzip boundary basis, not the full file.
* package: removed debug codeNatanael Copa2009-06-221-1/+0
|
* ver: only compare the given packages, show versionNatanael Copa2009-06-201-0/+5
| | | | | make apk_version_compare() take strings rather than blobs add apk_pkgversion_compare(), a wrapper that takes packages
* add: support for forced versionsNatanael Copa2009-06-161-0/+33
| | | | | | | Support version numbers specified with packages. For example: apk add 'busybox<1.14' apk add 'squid=>3.0'
* pkg: clean up writing of dependenciesTimo Teras2009-04-161-82/+60
|
* pkg: apk_deps_del helper introducedTimo Teras2009-04-161-0/+19
|
* pkg: fix apk v1.0 URL field importTimo Teras2009-04-161-1/+1
|
* state: rework changeset calculation algorithmTimo Teras2009-04-141-7/+79
| | | | | | | | | | | | | | | | | | | | | | | | Calculate changesets directly by stabilizating the package graph instead of recalculating the whole graph and then diffing (similar approach as seen in 'smart' package manager). The algorithm is not complete: defferred search space forking is missing. So you don't always get a solution on complex graphs. Benefits: - usually the search state tree is smaller (less memory used) - speed relational to changeset size, not database size (usually faster) - touch only packages related to users request (can work on partitially broken state; upgrades only necessary packages, fixes #7) Also implemented: - command prompt to confirm operation if packages are deleted or downgraded - requesting deletion of package suggests removal of all packages depending on the package being removed (you'll get list of packages that also get removed if you want package X removed) - option --simulate to see what would have been done (mainly for testing) - an untested implementation of versioned dependencies and conflicts A lot has changed, so expect new bugs too.
* pkg: write dependencies directly file instead of bufferTimo Teras2009-03-171-0/+23
| | | | | So we don't get artificial limits on the amount of dependencies (fixes #8).
* pkg: show warning if deprecated .INSTALL is present in packageTimo Teras2009-02-271-1/+14
|
* Revert "Revert "pkg: use absolute filenames for packages""Natanael Copa2009-01-211-2/+7
| | | | | | This reverts commit 600f9e7e031c9e7244e078f35ec6c8dce1011149. My bad. This was correct.
* Revert "pkg: use absolute filenames for packages"Natanael Copa2009-01-211-7/+2
| | | | | | This reverts commit 46430ceb5607ac9e395432648c6a8c1a7cbceaf1. The problem this was suppoed to fix was fixed by letting apk_db_open() return with same working dir.
* pkg: use absolute filenames for packagesTimo Teras2009-01-201-2/+7
|
* add: --upgrade|-u to control if upgrading is preferred or notTimo Teras2009-01-161-3/+0
|
* info: implement who owns packages query (apk_info -W)Timo Teras2009-01-131-5/+7
| | | | | In quiet mode e.g. "apk info -q -W <file list>" a list of dependencies suitable for .PKGINFO is output in one line.
* pkg: use generic blob functions to parse dependenciesTimo Teras2009-01-131-38/+36
|
* db, package: new dependency format, second tryNatanael Copa2009-01-111-4/+4
| | | | | | dependencies are separated with single space rather than ', '. makes db file slightly easier to parse from a shell script which might be handy.
* Revert "db: change format for dependencies"Natanael Copa2009-01-091-3/+3
| | | | This reverts commit b852d670a985c4da11b012707acaa63b8abdfadc.
* db: change format for dependenciesNatanael Copa2009-01-081-3/+3
| | | | | | Each dep is separated with a single space. I.E: D:dep1 dep2 dep3
* src/package.c: fix compiler warning on 64 bit hostsNatanael Copa2009-01-081-2/+2
|
* various: make fancy progress bar and update todoTimo Teras2009-01-071-2/+1
|
* db, pkg: fix rest of memory leaksTimo Teras2009-01-061-0/+2
|
* io: apk_ostream stuffTimo Teras2008-11-281-16/+4
|
* add: add support to install packages not in a repositoryTimo Teras2008-11-281-0/+1
|
* db: rework 'files' to 'installed'Timo Teras2008-11-281-8/+30
| | | | | Make the db of installed packages more similar to index file and reuse the code. Also rename the database file.
* hash, db: use apk_blob_t and list_*Timo Teras2008-11-271-20/+20
|
* db: checksum installed files, protect config filesTimo Teras2008-11-141-1/+1
| | | | | | | Checksum of installed is computed on the fly when extracting them and it'll be saved to fdb. When installing config files those are diverted with suffix .apk-new if earlier version of same file with local changes exist.
* build: remove pthreads referencesTimo Teras2008-11-121-1/+0
|
* pkg: speed up indexing of version 2 .apksTimo Teras2008-11-071-3/+5
|
* use zlib internally to decompressTimo Teras2008-11-071-13/+14
|
* db: fix installation of apk v1 packagesTimo Teras2008-11-071-1/+1
|
* pkg: support for new scriptsTimo Teras2008-11-071-51/+75
|
* db: parse new style .PKGINFOTimo Teras2008-11-061-52/+102
|
* give more helpful error messagesNatanael Copa2008-10-261-3/+6
|
* Overwriting of bb files, apk_create (from old apk-tools), chdir changes,Timo Teras2008-04-221-6/+10
| | | | | other stuff.
* Argument parsing. Some other stuff too.Timo Teras2008-04-211-20/+0
|