summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-06-11speed improvements for database openingTimo Teräs2-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.
2015-06-10search: fix swapped needle and haystackBobby Bingham1-2/+2
2015-06-03apk-tools-2.6.1v2.6.1Timo Teräs1-1/+1
2015-06-01fix directory permissions loadingTimo Teräs2-2/+5
commit 941fc1b1 uncovered a bug that directory permissions are not updated properly at db load time if it's the default acl.
2015-05-26apk-tools-2.6.0v2.6.0Timo Teräs1-1/+1
2015-05-26detect failures in writing to file during final flush of buffersAlex Dowad1-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.)
2015-04-24apk-tools-2.6.0_rc4v2.6.0_rc4Timo Teräs1-1/+1
2015-04-24do not extract files with malicious nameTimo Teräs1-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.
2015-04-24allow virtual packages beginning with dot by default on tmpfs installsTimo Teräs1-3/+3
the allows update-kernel script to work on tmpfs install before cache is configured.
2015-04-24modifications for the previous commit in error message handlingTimo Teräs4-5/+8
forgot to --amend my changes
2015-04-22print.c: provide more detailed error messages if retrieving a package failsAlex Dowad2-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]
2015-04-22io: fix compiler error by including stdint.hAlex Dowad1-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.
2015-04-17apk-tools-2.6.0_rc3v2.6.0_rc3Timo Teräs1-1/+1
2015-04-17fix issue introduced in previous xattr error handling changesTimo Teräs1-2/+2
2015-04-17disable xattrs on symlinks for nowTimo Teräs2-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)
2015-04-17make file install errors non-fatal, and xattr errors hiddenTimo Teräs5-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"
2015-04-13apk-tools-2.6.0_rc2v2.6.0_rc2Timo Teräs1-1/+1
2015-04-13fix tee io error handlingTimo Teräs2-4/+6
use ERR_PTR mechanism, and handle it at all places.
2015-04-13fix error mapping typesTimo Teräs1-1/+1
on arm char is by default unsigned, so this caused crashes as the ERR_PTR mechanism did not work as expected with unsigned types. extend the array type to be signed short explicitly.
2015-04-10update: return errors also with --quietNatanael Copa1-1/+1
fixes #4040
2015-04-08use memmove for copying buffer leftovers, as the ranges may overlapTimo Teräs1-1/+1
issue cought by fortify
2015-04-08apk-tools-2.6.0_rc1v2.6.0_rc1Timo Teräs1-1/+1
2015-04-08unbreak audit after xattr supportTimo Teräs1-2/+1
2015-04-08ignore .apk-new files for overlaysTimo Teräs3-1/+12
2015-04-08make default dir/file acl implicitTimo Teräs1-2/+2
apk in alpine 3.1 already supports this optimization, but kept the database format. now is time to start using this feature.
2015-04-08audit xattrsTimo Teräs3-38/+90
ref #3027
2015-04-07update: return failure if any mirror update failedNatanael Copa3-3/+10
fixes #4040
2015-04-07commit: return failure if there are any errorsNatanael Copa1-1/+1
fixes #4019
2015-03-11calculate and store checksum of xattrsTimo Teräs5-7/+63
ref #3027
2015-03-10rename file info related functions for consistencyTimo Teräs8-17/+17
2015-03-10extract xattrs from packagesTimo Teräs3-0/+46
ref #3027
2015-03-10rework error handling for write streamsTimo Teräs4-29/+19
2015-03-10rework error handling for read streamsTimo Teräs8-42/+74
2015-02-04apk-tools-2.5.0v2.5.0Timo Teräs1-1/+1
2015-02-04remove old compat. field entry from installed db handlingTimo Teräs1-1/+0
Package pinning was first implemented with 'p' tag. However, it was before any release renamed to 's', and 'p' was reserved for package provides support for which is used now.
2015-01-30remove spurious audit message from missing files with --systemTimo Teräs1-4/+2
fixes #3840
2015-01-30sort world dependencies alphabeticallyTimo Teräs5-14/+22
this makes 'lbu diff' and aaudit diffs nice when a world dependency is added or removed. sorting also makes the ordering more deterministic as the world targets constraints are always applied in the same order. test suite updated accordingly.
2015-01-30always save 'world' with line feedsTimo Teräs2-4/+1
using space was for backwards compatibility with apk-tools 2.2.2 and earlier (from January 2012)
2015-01-30remove support for old database location in /varTimo Teräs3-57/+0
the location changed in apk-tools 2.1.0 (March 2011) which was used in Alpine Linux 2.2.
2015-01-30remove reverse dependencies firstTimo Teräs1-0/+6
when removing large sets of packets, the ordering of removal was not quaranteed to honor dependencies. this fixes the removal order to be in reverse dependency order as far as possible.
2014-12-08make del, fetch, fix and info return errorsTimo Teräs8-32/+63
In case all applet arguments are packages names (that is are not including wildcards), return error if they do not match to some package.
2014-12-08fix test modeTimo Teräs1-5/+7
2014-11-03apk-tools-2.5.0_rc1v2.5.0_rc1Timo Teräs1-1/+1
2014-11-03db: assign write permission to lock fileKaarle Ritvanen1-2/+2
Allows running apk as an unprivileged user, e.g. with fakeroot. Opening the lock file fails without the write permission.
2014-11-01move --simulate to commit options group and alias -s for itTimo Teräs1-5/+4
2014-11-01make 'mode, uid, gid' triplet separate atomized structTimo Teräs3-53/+68
there are only few combinations for that triplet, and they occur multiple times reducing the struct sizes a bit. make sane defaults and prepare to not write defaults to disk to reduce on-disk installed db size.
2014-11-01support extended pax header in tar extractorTimo Teräs3-38/+93
2014-10-13db: improve and unify fdb error messagesTimo Teräs1-27/+13
2014-10-09db: unconditionally refresh index with --forceTimo Teräs1-1/+3
2014-10-08rework option parsing to have a group structureTimo Teräs14-319/+390
Add also a new 'commit' group that is the common options for all applets that can commit package changes.