Age | Commit message (Collapse) | Author | Files | Lines |
|
The apk cache might be on the readonly media so we need wait with
remounting til after atleast this filehandle is closed.
|
|
commit 4e72075fbab introduced a bug where package installation might happen
in wrong order (reminder for self to separate the package version deduction
to separate step from installation ordering). this restricts the earlier
commit to not mingle with the install order.
|
|
|
|
already
|
|
|
|
|
|
This is so we can do x86 --root installs on x86_64 hosts.
Using --arch without --root can make great damage so we only enable it
if --root is used.
|
|
|
|
|
|
|
|
Parse these fields from .PKGINFO, and write them to index.
|
|
Our build infra does not yet handle properly noarch, so for the
time being we will rewrite them as native packages in index. This
allows the package to be fetched from the proper URL. This feature
will be removed once abuild and the build infra handle noarch
properly.
|
|
improves behaviour under certain corner case conditions.
|
|
The db parameter to apk_state_commit is not needed so we remove it.
|
|
Implement the logic for install_if lines. Update info applet to
also display the install_if related fields.
|
|
|
|
broke after making the version field an atom because the printf
was not updated accordingly.
|
|
|
|
commit 4e72075fbab introduced late locking for top level packages,
but used the wrong package's top level flag for the check. this
fixes a problem that dependencies might not get pulled in.
|
|
* make it as wide as the screen
* make sure it's drawn after package change
* and draw it using ansi escapes in line buffered stderr
|
|
This allows us to get apk-tools dependencies get reset at proper
time in world. As a bonus, it reduces code amount.
|
|
This will fix certain scenarios where multiple packages are
installed with full package files specified on command line
and they depend on each other.
|
|
move all files therein to other places. this allows /var to be
mounted from harddisk, but rest of system be run from ramdisk.
this also removes support for historical version of the scripts
database which was obsoleted in 2.0_pre16 (in July 2009).
|
|
in accordance with FSH. this also to clear /var of apk related things
as we might want to run /var as harddisk, but rest of system from
ramdisk.
|
|
and make the progress bar disappear on regular runs too.
|
|
comment out the code that was out for testing. duh.
|
|
.. and back to read-only after finishing with modifications.
fixes #512
|
|
if package arch is not set, do not append anything to repository.
if arch is set, it is appended to repository.
|
|
Use statfs() filesystem type, instead of the device IDs.
|
|
If GNU wget is available, then we want use it as it gives the user
possibility to set misc options, such as bandwidth limit in wgetrc.
It might also be that busybox is not available in case bootstrapping
alpine from other distros (think debian vserver host creating an
alpine guest)
In any case we, fall back to busybox wget in case wget libs are getting
upgraded. (see http://redmine.alpinelinux.org/issues/347)
|
|
|
|
Packages without architecture should get the platforms default
architecture (so we are backwards compatible). Only the virtual
packages should get 'noarch' by default. Also print full path
to the index file which failed.
|
|
The atomization change broke virtual packages because they don't
have license or arch set.
|
|
Parse install_if from package metadata and include it in the
indexes. Also setup the reverse install_if dependencies when
loading a database. ref #443.
Actual install_if functionality is not yet implemented.
|
|
Just disable installation of packages using the new stuff. Also
flag lower case package info fields as non-critical and allow
installation even if that features is not supported.
|
|
otherwise we get reads from uninitialized/unallocated memory.
|
|
When package is installed from commandline, we should always
install that specific instance of package (never favor repository
version if it has difference identity). Otherwise we might not
always end-up installing the .apk given on command line. The
dependency is now against specific checksum identity (marked
with >< dependency comparison). Fixes #492.
|
|
.. instead of the longer flag combo.
|
|
Also re-exec's apk-tools to perform rest of the upgrade using
the new apk-tools. This allows handling of new apk-tools features
properly. Fixes #140.
|
|
It's no longer needed or used.
|
|
The version now needs to be initialized atom always, since it's
dereferenced in various places.
|
|
I think there used to be problems with using http_proxy on bb wget,
but those have been fixed for quite some time. This fixes #347.
We should probably use libcurl or similar library eventually, but
I'm not entirely sure if/when we want that.
|
|
The boundary callback should not happen until all the uncompressed
data has been consumed. This previously seems to have worked
because normally gzip library returns "no error" instead of the
"stream end" if we extract exactly the amount of bytes remaining
in the archive. (Perhaps this was changed in new zlib.) In any
case, verification was broken with some apks due to this callback
ordering issue.
|
|
|
|
- implement a hash table for commonly shared fields such as
license, version and architecture
- use macroes to print blobs or pkgname-pkgver strings
- fix some old cruft
|
|
Architecture is now:
- parsed from .PKGINFO
- written to index and installed db
- appended to repository URL when fetching files
|
|
Unsigned indexes should not be needed anymore anyway.
|
|
should not be needed anymore.
|
|
.. instead of the pkgname-pkgver string.
|
|
* prunes the child pid to avoid zombies
* handles the errors so e.g. file-not-found is reported properly
|