Timo Teräs
91c4cc6c18
fetch: fix fetching of packages with arch
2011-04-07 14:14:27 +03:00
Timo Teräs
9eeb95470b
apk-tools-2.1.0_pre1
2011-03-29 14:51:57 +03:00
Timo Teräs
e783f20eff
fetch: fix package version print
...
broke after making the version field an atom because the printf
was not updated accordingly.
2011-03-29 13:09:45 +03:00
Timo Teräs
b01d144c69
various: fix breakage from converting dependency versions to atoms
...
The version now needs to be initialized atom always, since it's
dereferenced in various places.
2011-01-01 12:11:49 +02:00
Timo Teräs
43cb554c3f
various: use O_CLOEXEC and add some error checking
2010-06-11 13:42:21 +03:00
Natanael Copa
3ec82a5a42
First steps for libapk
2010-06-11 07:02:18 +00:00
Timo Teräs
7be853e637
all: rework how arrays work
...
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.
2010-06-05 12:33:54 +03:00
Timo Teras
ef7d467083
fetch: do not include installed non-repository files in search
...
we do not create mirror repositories from other valid repositories,
not from what was installed locally.
2010-03-04 14:01:37 +02:00
Timo Teras
f02f326238
db: prefer local repositories, and implement --no-network
...
this helps boots sequence when network is not available.
2009-08-06 16:00:20 +03:00
Timo Teras
ecdacd1503
all: implement database open options
...
so user can override trusted keys directory and repositories file.
2009-08-06 14:25:03 +03:00
Timo Teras
856181a032
fetch: --link is -L for short, not -l
2009-08-05 12:45:02 +03:00
Timo Teras
ec2ade1542
state: fix world dependencies to be honored always
...
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.
2009-08-04 13:57:54 +03:00
Timo Teras
ea90152664
apk: use *at instead of chdir+normal file syscall
...
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.
2009-07-31 16:08:09 +03:00
Timo Teras
6092865d85
add, fetch: make handling of special options more logical
2009-07-24 14:23:33 +03:00
Timo Teras
1a54de02b5
db: open flags revisited
...
more fine grained control what to load, and rename some of the
flags to be shorter.
2009-07-07 09:27:56 +03:00
Natanael Copa
4d940c7932
fetch: respect --simulate option
2009-07-06 08:48:25 +00:00
Timo Teras
7a29678aac
help: auto construct help
...
And add some more verbosity to the help message.
2009-06-25 15:14:07 +03:00
Natanael Copa
4bbed2d648
ver: only compare the given packages, show version
...
make apk_version_compare() take strings rather than blobs
add apk_pkgversion_compare(), a wrapper that takes packages
2009-06-20 12:38:07 +02:00
Natanael Copa
61213c4018
improve --help output
...
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.
2009-06-19 15:40:37 +02:00
Natanael Copa
d8b1b851c7
fetch: use lstat to verify filesize on existing targets
...
since we dont verify the checksum we dont need to calculate it
Speed up when you try fetch lots of stuff thats already there.
2009-06-16 09:57:34 +00:00
Natanael Copa
3646350479
fetch: readlink does not end buffer with \0
...
According the manpage readlink(2) does not append a null byte to buf.
So we have to do it ourselves.
2009-06-11 09:21:17 +00:00
Natanael Copa
64a85ec65d
fetch: do not create hardlinks to softlinks but to softlink targets
...
Otherwise the iso image will have softlinks which is not what we want
2009-06-11 08:39:51 +00:00
Natanael Copa
cd5d44fa9d
fetch: removed debug message
...
leftovers from a debug session.
2009-06-09 09:58:34 +00:00
Natanael Copa
50cdcca833
fetch: added --link/-L option
...
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.
2009-06-09 11:12:06 +02:00
Natanael Copa
c8c9851369
fetch: fix fd leak
...
we should always close the in-stream, not only on failure.
2009-05-26 14:23:12 +00:00
Natanael Copa
33da51c596
fetch: close downloaded file. unlink on failure
2009-04-15 10:00:14 +00:00
Timo Teras
9567337fd2
fetch: new applet to download .apk files
...
Fixes #24 .
2009-04-15 09:56:09 +03:00