aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* apk-tools-2.6.7v2.6.7Timo Teräs2016-05-271-1/+1
|
* index: don't return error if --index does not existsTimo Teräs2016-05-271-2/+2
| | | | | | it's only used to speed up things, and having it non-existant is not a fatal error - all included things in index will be passed in command line anyway
* apk: don't exit with error code for -V and --print-archTimo Teräs2016-04-191-0/+2
|
* blob: fix sign extension in test_bitTimo Teräs2016-04-031-1/+1
|
* fetch: allow enabling --simulateTimo Teräs2016-02-162-2/+6
|
* 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
* apk-tools-2.6.6Timo Teräs2016-02-091-1/+1
|
* archive: fix long symlink target namesTimo Teräs2016-02-091-2/+2
| | | | | don't overwrite the link_target if it was found from pax header. ref #5076
* commit: self-conflict error and satisfies printingTimo Teräs2015-12-103-11/+20
| | | | | | - self-conflicts when the exact same version of a name is provided twice is now properly detected and diagnozed - don't print redundant satisfies diagnostic
* solver: more debug output for package errorsTimo Teräs2015-12-101-7/+11
|
* db: add support for --no-cacheNatanael Copa2015-12-073-1/+12
| | | | | | | | | Implement --no-cache. The index is read directly from network and not cached. This is useful for docker, where you install a set of packages and directly after purge the cache. (see https://github.com/gliderlabs/docker-alpine/blob/1fc9e59d1689fc4eaf930ec66389fe58062fccec/builder/scripts/apk-install) fixes #4905
* apk-tools-2.6.5Timo Teräs2015-11-121-1/+1
|
* info: fix --installed test of conflictsTimo Teräs2015-11-121-5/+5
|
* add armv7 targetTimo Teräs2015-11-121-0/+2
|
* io, database: preserve [am]time for cached and fetched filesTimo Teräs2015-11-097-11/+122
| | | | | | | | | | | 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)
* search: match packages only onceTimo Teräs2015-11-091-0/+9
| | | | | | | fixes #4770 apk_name_foreach_matching() can matches each package via it's main name and all it's provides. Print matched packages only once.
* io: fix posix_fallocate failure handlingNatanael Copa2015-10-081-1/+1
| | | | | We need fall back to a splice buffer if posix_fallocate call fails due to file being a device (eg tty) or a pipe. This fixes apk fetch --stdout.
* blob: Add missing headerAndrew Wilcox2015-10-081-0/+1
|
* apk-tools-2.6.4Timo Teräs2015-09-111-1/+1
|
* db: stop extract more files if disk is fullTimo Teräs2015-09-031-2/+4
|
* io: use posix_fallocate to allocate disk spaceTimo Teräs2015-09-031-3/+8
| | | | | | ftruncate does not allocate it, and subsequent access to mmaped file will result in SIGBUS. this fixes to properly report disk full errors.
* apk-tools-2.6.3Timo Teräs2015-07-031-1/+1
|
* relocate lock file to /lib/apk/dbTimo Teräs2015-07-021-3/+2
| | | | | | the problem is that var/lock is on root installs symlink to /run/lock (on tmpfs) and does not exist if doing chroot() to that root. fixes apk to work when chrooted to existing rootfs install.
* remove db dir entry properly, so it can be recreated properly if neededTimo Teräs2015-06-261-7/+7
| | | | fixes #4261
* apk-tools-2.6.2Timo Teräs2015-06-121-1/+1
|
* add simple stats appletTimo Teräs2015-06-123-2/+67
|
* free atoms when VALGRIND is definedTimo Teräs2015-06-121-0/+10
|
* for completeness free all arrays before exitTimo Teräs2015-06-122-0/+2
| | | | so valgrind does not report any leaks
* fix bstream_from_fd to use mmap when availableTimo Teräs2015-06-121-1/+2
|
* fix search --has-origin to not leak memoryTimo Teräs2015-06-121-1/+1
|
* optimize base64 decoding a bitTimo Teräs2015-06-121-20/+16
| | | | it's a hot path for decoding checksums in fdb
* use murmur3_32 hashTimo Teräs2015-06-111-6/+45
| | | | it is more efficient than the previously used djb hash
* speed improvements for database openingTimo Teräs2015-06-112-4/+44
| | | | | | | | resolve reverse dependencies after all packages have been loaded, and avoid traversing the reverse name lists. now that we use automatic virtual packages (soname, pkg-config, etc.) the reverse dependency chains can become considerable longer than what it was when the rdependency construction code was originally written.
* search: fix swapped needle and haystackBobby Bingham2015-06-101-2/+2
|
* apk-tools-2.6.1Timo Teräs2015-06-031-1/+1
|
* fix directory permissions loadingTimo Teräs2015-06-012-2/+5
| | | | | commit 941fc1b1 uncovered a bug that directory permissions are not updated properly at db load time if it's the default acl.
* apk-tools-2.6.0Timo Teräs2015-05-261-1/+1
|
* detect failures in writing to file during final flush of buffersAlex Dowad2015-05-261-1/+3
| | | | | | | | | | | | | | | | | In practice this should fix to e.g. not wipe out /etc/apk/world if final flush to /etc/apk/world.new fails. This was prompted by an incident the other day where I ran the root partition of an Alpine box out of space using 'apk add', and apk helpfully wiped the contents of /etc/apk/world at the same time. It might be tricky to try to reproduce exactly the same failure, but from an examination of the code, setting 'rc' before the final call to fdo_flush rather than after is one possible cause of this behavior. (If the entire contents of /etc/apk/world.new are buffered, and all get written out in the final fdo_flush call, and that call fails, fdo_close will still happily rename /etc/apk/world.new to /etc/apk/world.)
* apk-tools-2.6.0_rc4Timo Teräs2015-04-241-1/+1
|
* do not extract files with malicious nameTimo Teräs2015-04-241-1/+14
| | | | | | | | | the security implications are not as high as compared to regular tar/unzip archiver. this is because you are anyway trusting the package to install files anywhere in the filesystem. this serves rather as a sanity to check against errors in created package.
* allow virtual packages beginning with dot by default on tmpfs installsTimo Teräs2015-04-241-3/+3
| | | | | the allows update-kernel script to work on tmpfs install before cache is configured.
* modifications for the previous commit in error message handlingTimo Teräs2015-04-244-5/+8
| | | | forgot to --amend my changes
* print.c: provide more detailed error messages if retrieving a package failsAlex Dowad2015-04-222-1/+21
| | | | | | | | | | | | fetch_maperror() translates error codes returned by libfetch to our error codes. Handle those in apk_error_str(), returning error messages which advise the user of the most likely fix. A custom error code, EAPKSTALEINDEX, has been added for cases where retrieving a package fails due to a HTTP error 404 or similar. [TimoT: add also EAPKBADURL, as well as organize a bit better where the EAPKSTALEINDEX is generated]
* io: fix compiler error by including stdint.hAlex Dowad2015-04-221-0/+1
| | | | | | | According to the C standards, uint32_t is defined in stdint.h. Presumably apk is usually built against C libraries where stdint.h is indirectly included through another header file, but this isn't the case with the version of glibc which I am using.
* apk-tools-2.6.0_rc3Timo Teräs2015-04-171-1/+1
|
* fix issue introduced in previous xattr error handling changesTimo Teräs2015-04-171-2/+2
|
* disable xattrs on symlinks for nowTimo Teräs2015-04-172-2/+2
| | | | | | there's no nice syscall to manipulate xattrs with atfd and or open the symlink without dereferencing it (and having fd that we can do xattrs with)
* make file install errors non-fatal, and xattr errors hiddenTimo Teräs2015-04-175-83/+109
| | | | | | | | | user xattrs on tmpfs are not supported no non-grsec kernels, and many times root fs is mounted without user_xattr. Thus to allow things to go smoothly on non-grsec kernels xattr unsupported errors are now hidden. xattrs can be fixed still now with "apk fix --xattrs"
* apk-tools-2.6.0_rc2Timo Teräs2015-04-131-1/+1
|
* fix tee io error handlingTimo Teräs2015-04-132-4/+6
| | | | use ERR_PTR mechanism, and handle it at all places.