Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
rooted by a virtual
|
|
|
|
The virtual package provider still needs to be explicitly
given on command line.
|
|
|
|
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
|
|
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)
|
|
|
|
|
|
In case all applet arguments are packages names (that is are not
including wildcards), return error if they do not match to some
package.
|
|
Add also a new 'commit' group that is the common options
for all applets that can commit package changes.
|
|
|
|
|
|
This reverts commit a99bedba6fa66cc55b30575b32b1359e22cfefb5.
|
|
Prevent the progressbar and status messages to mess up stdout.
|
|
Acked-by: Natanael Copa <ncopa@alpinelinux.org>
|
|
|
|
ref #511
|
|
- let the apk_print functions deal with the forced print itself. We
avoid that the callbacks need to deal with the force flag. We can
also get rid of the APK_PRINT_PROGRESS_* defines.
- let the reader of --progress-fd decide how often things are updated
rather than having a fixed granularity off 1/100 (percent)
- avoid detect screen size and percent/bar calculations in case the
--no-progress was given
- track satistics for both the ascii bar and percent info and update bar
only if either percent or bar changes. This makes the bar go smoother
when width is wider than 100 chars and it makes the percent counter
go smooth when screen width is less thann 100 chars. It also
simplifies the callbacks as they no longer need to deal with update
granularity.
|
|
|
|
|
|
Fixes also 'fetch' applet to prefer copying/linking to files from
cache if possible.
|
|
Implementing basic dependency handling, install_if and awareness
of pinning.
|
|
Solver will now never report partial solution where a conflict
constraint is not satisfied. The is because with --force we might
install the partial solution; and if conflicted packages were to
be installed we might have extra trouble.
|
|
in preparation for provides support. implements also some
dependency satisfaction helper routines.
ref #574.
|
|
|
|
|
|
still todo:
- 'fix' is missing
- 'del -R' does not work
- 'upgrade' does not do self-upgrade first
... and a lot of testing.
|
|
|
|
|
|
broke after making the version field an atom because the printf
was not updated accordingly.
|
|
The version now needs to be initialized atom always, since it's
dereferenced in various places.
|
|
|
|
|
|
Instead of having a null pointer, use a dummy array which just
says the array is empty. This helps in multiple places of the code
which would otherwise need explicitly need to check first if the
array exists. This has been cause of multiple seg.faults in the
past as the array check is easily omitted.
This also removes (or fixes) all existing checks accordingly.
|
|
we do not create mirror repositories from other valid repositories,
not from what was installed locally.
|
|
this helps boots sequence when network is not available.
|
|
so user can override trusted keys directory and repositories file.
|
|
|
|
previously they might have been skipped on certain situations.
this also fixes some other reverse dependency enforcements and
implements new "pending" state for locked name.
|
|
this way we never change cwd, and relative filenames are always
parsed consistently. this also helps filename construction in many
places. this patch also changes '--root' to override location of
all configuration to be in the new root. previously it depended
on the file which one was used.
|
|
|
|
more fine grained control what to load, and rename some of the
flags to be shorter.
|
|
|
|
And add some more verbosity to the help message.
|
|
make apk_version_compare() take strings rather than blobs
add apk_pkgversion_compare(), a wrapper that takes packages
|
|
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.
|
|
since we dont verify the checksum we dont need to calculate it
Speed up when you try fetch lots of stuff thats already there.
|
|
According the manpage readlink(2) does not append a null byte to buf.
So we have to do it ourselves.
|
|
Otherwise the iso image will have softlinks which is not what we want
|