summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* db: open flags revisitedTimo Teras2009-07-076-35/+45
| | | | | 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
|
* apk-tools-2.0_pre13apk-tools-2.0_pre13Timo Teras2009-07-021-1/+1
|
* info: fix compiler warning on x86_64Natanael Copa2009-06-301-2/+2
| | | | | printf %i does not work so well with size_t on 64 bit. Use %zu which seems to be portable enough.
* cache: new applet (ref #49)Timo Teras2009-06-296-18/+203
| | | | Administrative tool to download or delete files to/from the cache.
* db: cache packages (ref #49)Timo Teras2009-06-294-59/+149
| | | | | | | | | | | If /etc/apk/cache is a symlink to directory, a copy of all installed packages is stored there, and the index of remote repositories will be there instead of /var/lib/apk. This enables to reconstruct running system during boot. Left as todo: remove cached copy when the package is removed, and additional apk applet to download missing packages to cache and/or remove extra items.
* blob: function to checksum a blobTimo Teras2009-06-284-22/+21
| | | | And use it in couple of places. Some whitespace fixes too.
* help: auto construct helpTimo Teras2009-06-2513-142/+264
| | | | And add some more verbosity to the help message.
* upgrade: add --available optionTimo Teras2009-06-253-5/+42
| | | | | | | That will make the upgrade prefer packages available in repositories. This is good if one want's to downgrade packages by removing an experimental repository. Or to force re-install of locally built vs. repository version when the package version are same, but checksum is different. Fixes #51.
* upgrade: new appletTimo Teras2009-06-252-1/+56
| | | | | Currently just goes through all world dependencies and updates them where possible (ref #51).
* package: removed debug codeNatanael Copa2009-06-221-1/+0
|
* version: added apk_version_compare_blob() functionNatanael Copa2009-06-222-7/+9
| | | | | We want be able to compare blobs so we basicly revert the old change, and make a wrapper that takes version strings.
* ver: only compare the given packages, show versionNatanael Copa2009-06-207-37/+71
| | | | | make apk_version_compare() take strings rather than blobs add apk_pkgversion_compare(), a wrapper that takes packages
* db: add function apk_repository_update_allNatanael Copa2009-06-193-4/+13
| | | | | | | | We might want to add an --update-index option to misc applets. For example: apk add --update-index -u package apk version --update-index
* info: support for -d, --descriptionNatanael Copa2009-06-191-5/+20
| | | | and re-arrange the order of displayed info
* info: allow multiple subactions at the same runNatanael Copa2009-06-191-18/+45
| | | | By using a bitmask we can combine subactions
* info: add size and webpage to usageNatanael Copa2009-06-191-1/+1
|
* info: add -w,--webpage and -s,--size optionsNatanael Copa2009-06-191-0/+30
|
* improve --help outputNatanael Copa2009-06-198-23/+36
| | | | | apk --help will list the generic options only and give a list of commands To get the details for a spefic command, 'apk command --help' should be used.
* add: support for forced versionsNatanael Copa2009-06-165-16/+61
| | | | | | | Support version numbers specified with packages. For example: apk add 'busybox<1.14' apk add 'squid=>3.0'
* fetch: use lstat to verify filesize on existing targetsNatanael Copa2009-06-161-3/+2
| | | | | since we dont verify the checksum we dont need to calculate it Speed up when you try fetch lots of stuff thats already there.
* state: bugfix in the package version selectorNatanael Copa2009-06-161-2/+5
|
* io: fix mmap bstream fd leakTimo Teras2009-06-111-1/+2
| | | | | We need to close the fd on destruction. This is what the corresponding istream variant does too.
* fetch: readlink does not end buffer with \0Natanael Copa2009-06-111-1/+4
| | | | | According the manpage readlink(2) does not append a null byte to buf. So we have to do it ourselves.
* fetch: do not create hardlinks to softlinks but to softlink targetsNatanael Copa2009-06-111-1/+3
| | | | Otherwise the iso image will have softlinks which is not what we want
* fetch: removed debug messageNatanael Copa2009-06-091-1/+0
| | | | leftovers from a debug session.
* fetch: added --link/-L optionNatanael Copa2009-06-091-19/+33
| | | | | | | | | fixes #42 This will also fix a bug that left an empty file in destination dir when source file did not exist in repository. There are still issues with paths longer than 255 chars.
* build: create archive directly from git treeTimo Teras2009-05-272-4/+16
| | | | So we don't get local modifications or extra files in the tarball.
* fetch: fix fd leakNatanael Copa2009-05-261-1/+1
| | | | we should always close the in-stream, not only on failure.
* apk-tools-2.0_pre12apk-tools-2.0_pre12Timo Teras2009-05-251-1/+1
|
* Revert "add: replace coffe-cup with starwars"Timo Teras2009-05-252-4/+48
| | | | | | | | This reverts commit 0906a1c7de37ba54f29e9dbabbbd5ea069258cef. Conflicts: src/add.c
* state: upgrade deps for given packages to add -uNatanael Copa2009-05-241-4/+4
|
* add: fix segfault when no params are givenLinux User2009-05-211-1/+2
|
* add: replace coffe-cup with starwarsNatanael Copa2009-05-211-48/+4
| | | | saves space
* add: coffe-cupNatanael Copa2009-05-211-0/+49
|
* add: fix segfault when no packages are givenNatanael Copa2009-05-191-1/+1
|
* db: warn rather than fail with error if a repo index fails to loadNatanael Copa2009-05-191-10/+5
|
* db: fix bug that made inverted new installs and upgradesNatanael Copa2009-05-181-1/+1
| | | | We upgrade when we have an oldpkg.
* add: create csum for virtuals. only add the virtual to worldNatanael Copa2009-05-151-2/+14
|
* add: improve error reporting for virtual packagesNatanael Copa2009-05-151-5/+7
| | | | | | By locking all the given dependendencies for virtual packages first we can catch invalid deps and report those. This is alot more helpful than just reporting "Unable to install <virutalpkg>"
* add: support for virtual meta packagesNatanael Copa2009-05-143-36/+85
| | | | | | | | implements 'apk add --virutal metaname dep1 dep2...' where metaname will be an empy meta package with dep1 and dep2 as dependencies. This is useful to prevent abuild to add each makedepend to world which causes some headache when it comes to unintalling them after sucessful build.
* index: fix segfault bug when trying to deleting an unresolved depNatanael Copa2009-05-141-1/+1
|
* fix uninitialized variable bugNatanael Copa2009-05-141-1/+1
|
* index: support for -d to delete packages from given indexNatanael Copa2009-05-123-5/+63
| | | | | | | | | The syntax is: apk index -d /path/to/APK_INDEX.gz pkg... It does not seem like its possible to remove packages in the db so we trick apk_db_index_write() by setting the repo to on-zero. It's still not perfect since it does not recalculate the dependencies.
* fix misc compiler warnings about unintialized variables.Natanael Copa2009-05-112-3/+4
| | | | The compiler is actually right about those.
* add: delay state initialization til we have all pkgs in dbNatanael Copa2009-05-111-5/+9
| | | | | | | | | The state size is taken from name_id and cannot be extended. So we must wait with initializing the state til we have all packages added to the db. We must also always allocate the package name, incase its not in the repository. This is done with apk_db_get_name().
* make: test for .git existence before using git describe to set versionNatanael Copa2009-05-081-1/+1
|
* apk-tools-2.0_pre11apk-tools-2.0_pre11Timo Teras2009-05-061-1/+1
|
* change apk audit letters to correspond to old sfic/lbu lettersNatanael Copa2009-05-061-2/+2
| | | | | A = "added" U = "updated"
* info: let -e print which packages are installedNatanael Copa2009-04-211-14/+30
|