summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* info: do not read the repositories as this tool only query the statedbNatanael Copa2009-04-213-15/+18
| | | | | | | | This allows you to query the state db even if you do not have write permissions in cache dir (which is needed if you have remote repositories) This should speed up things and save some memory if you have big and slow remote repositories.
* search: do not read the state db as this tool only query reposNatanael Copa2009-04-211-1/+1
| | | | This should be slightly faster and comsume less memory in theory
* url: rename to .backup rather than unlink before wgetNatanael Copa2009-04-211-1/+3
|
* db: do not assume root ends with '/'Natanael Copa2009-04-211-4/+4
|
* url: unlink file before trying to downloadNatanael Copa2009-04-211-0/+1
|
* db: improve error reportingNatanael Copa2009-04-211-6/+5
| | | | | | | apk_db_add_repository does its own error reporting and does not set errno reliable. This patch also tell which repository it failed to load the index for rather than just say it failed to open "APK_INDEX.gz" which does not tell much.
* db: fix bug in apk_repository_update()Natanael Copa2009-04-211-1/+1
|
* Makefile: add -nopie to LDFLAGSNatanael Copa2009-04-211-0/+1
|
* db: cache index files, 'update' appletTimo Teras2009-04-166-15/+177
| | | | | | Cache non-local index files always locally. Introduce 'update' applet to force refresh of cached index files. Fixes #19.
* build: eliminate "Nothing to be done for `all'" messageTimo Teras2009-04-161-1/+5
|
* build: improve dependency file generationTimo Teras2009-04-161-3/+2
|