summaryrefslogtreecommitdiff
path: root/src/package.c
AgeCommit message (Collapse)AuthorFilesLines
2009-07-16various: new style index generationTimo Teras1-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.
2009-07-16gzip: always autoclose the inner streamTimo Teras1-2/+6
2009-07-16pkg: remove support for the deprecated .INSTALL scriptTimo Teras1-14/+1
2009-07-15cache: make cache cleaning work again properlyTimo Teras1-0/+3
2009-07-15pkg: fix package scanner to read whole archiveTimo Teras1-2/+2
otherwise we don't get chechksum anymore after the changes to support partial gzip checksumming.
2009-07-14db: live with sha1 and md5Timo Teras1-9/+10
this also convers scripts file to a tar archive.
2009-07-14blob: some helpers to replace snprintfTimo Teras1-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.
2009-07-14bstream: make tokenizable and load index using bstreamTimo Teras1-3/+3
some fixes on index reading code too.
2009-07-13io: move csumming away from bstream to gunzipTimo Teras1-5/+23
in future we want to checksum on gzip boundary basis, not the full file.
2009-06-22package: removed debug codeNatanael Copa1-1/+0
2009-06-20ver: only compare the given packages, show versionNatanael Copa1-0/+5
make apk_version_compare() take strings rather than blobs add apk_pkgversion_compare(), a wrapper that takes packages
2009-06-16add: support for forced versionsNatanael Copa1-0/+33
Support version numbers specified with packages. For example: apk add 'busybox<1.14' apk add 'squid=>3.0'
2009-04-16pkg: clean up writing of dependenciesTimo Teras1-82/+60
2009-04-16pkg: apk_deps_del helper introducedTimo Teras1-0/+19
2009-04-16pkg: fix apk v1.0 URL field importTimo Teras1-1/+1
2009-04-14state: rework changeset calculation algorithmTimo Teras1-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.
2009-03-17pkg: write dependencies directly file instead of bufferTimo Teras1-0/+23
So we don't get artificial limits on the amount of dependencies (fixes #8).
2009-02-27pkg: show warning if deprecated .INSTALL is present in packageTimo Teras1-1/+14
2009-01-21Revert "Revert "pkg: use absolute filenames for packages""Natanael Copa1-2/+7
This reverts commit 600f9e7e031c9e7244e078f35ec6c8dce1011149. My bad. This was correct.
2009-01-21Revert "pkg: use absolute filenames for packages"Natanael Copa1-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.
2009-01-20pkg: use absolute filenames for packagesTimo Teras1-2/+7
2009-01-16add: --upgrade|-u to control if upgrading is preferred or notTimo Teras1-3/+0
2009-01-13info: implement who owns packages query (apk_info -W)Timo Teras1-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.
2009-01-13pkg: use generic blob functions to parse dependenciesTimo Teras1-38/+36
2009-01-11db, package: new dependency format, second tryNatanael Copa1-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.
2009-01-09Revert "db: change format for dependencies"Natanael Copa1-3/+3
This reverts commit b852d670a985c4da11b012707acaa63b8abdfadc.
2009-01-08db: change format for dependenciesNatanael Copa1-3/+3
Each dep is separated with a single space. I.E: D:dep1 dep2 dep3
2009-01-08src/package.c: fix compiler warning on 64 bit hostsNatanael Copa1-2/+2
2009-01-07various: make fancy progress bar and update todoTimo Teras1-2/+1
2009-01-06db, pkg: fix rest of memory leaksTimo Teras1-0/+2
2008-11-28io: apk_ostream stuffTimo Teras1-16/+4
2008-11-28add: add support to install packages not in a repositoryTimo Teras1-0/+1
2008-11-28db: rework 'files' to 'installed'Timo Teras1-8/+30
Make the db of installed packages more similar to index file and reuse the code. Also rename the database file.
2008-11-27hash, db: use apk_blob_t and list_*Timo Teras1-20/+20
2008-11-14db: checksum installed files, protect config filesTimo Teras1-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.
2008-11-12build: remove pthreads referencesTimo Teras1-1/+0
2008-11-07pkg: speed up indexing of version 2 .apksTimo Teras1-3/+5
2008-11-07use zlib internally to decompressTimo Teras1-13/+14
2008-11-07db: fix installation of apk v1 packagesTimo Teras1-1/+1
2008-11-07pkg: support for new scriptsTimo Teras1-51/+75
2008-11-06db: parse new style .PKGINFOTimo Teras1-52/+102
2008-10-26give more helpful error messagesNatanael Copa1-3/+6
2008-04-22Overwriting of bb files, apk_create (from old apk-tools), chdir changes,Timo Teras1-6/+10
other stuff.
2008-04-21Argument parsing. Some other stuff too.Timo Teras1-20/+0
2008-04-17Initial commit of some stuff written so far. Still in state of flux. ExpectTimo Teras1-0/+483
breakage and major changes.