Cameron Banta
e93cb1ffe5
Added -o option to apk info to list repository packages
2009-03-06 08:06:08 +02:00
Timo Teras
9b48288831
2.0_pre9
2009-03-04 11:32:47 +02:00
Natanael Copa
2b10123399
db: unlink apk-new if it is identical to existing config
2009-03-04 09:27:59 +00:00
Timo Teras
3752b47e7b
db: apk-new should be created if the existing file is modified
2009-03-04 11:08:49 +02:00
Timo Teras
652a7bb179
db: fix overwrite warning
2009-03-04 11:00:17 +02:00
Timo Teras
a62dcf37c1
apk: --force to overwrite files
2009-03-04 08:36:56 +02:00
Timo Teras
457943f83e
apk: --clean-protected option
...
So you will not get .apk-new files of the new configuration files.
2009-03-04 08:27:06 +02:00
Timo Teras
b75ae58b78
pkg: show warning if deprecated .INSTALL is present in package
2009-02-27 11:32:37 +02:00
Timo Teras
7027a7d844
db: new apk to have separate install scripts for each action
2009-02-27 11:18:15 +02:00
Natanael Copa
ca51ec3238
db: allow more than one --repository arg
2009-02-17 12:23:01 +00:00
Natanael Copa
6e55a18269
release 2.0_pre8
2009-02-12 09:50:20 +00:00
Natanael Copa
502e5612cc
db: do not allow overwrite busybox links
...
we let bb use /bin and /sbin, all packages overriding busybox must
install the bins in /usr/bin and /usr/sbin
2009-02-08 19:31:25 +00:00
Natanael Copa
9a1ab8e6fc
info: list contents follw same style as list depends
...
- empty lines comes after not before
- separate pkgname with : when using -v option
2009-02-08 19:22:04 +00:00
Natanael Copa
f16b671edc
info: implement -R/--depends to show dependencies
2009-02-08 19:08:48 +00:00
Natanael Copa
c0166798bf
release 2.0_pre7
2009-01-23 07:12:58 +00:00
Timo Teras
b8eb27d75b
db: fix purging of packages from database
...
apk_hash_delete() actually deletes the file entry, so unlinking
from other lists need to happen before that. Also free the diri
instead of leaking it.
2009-01-22 21:45:18 +02:00
Natanael Copa
3bcc676a2b
db: print files when (un)installing if --verbose
2009-01-22 15:55:27 +00:00
Natanael Copa
75b339cae2
db: always create directories during install
...
We dont care if a directory have references or not, we care if directory
is relly there.
Only the creator of the direcotry will set the permissions.
This fixes the situation where you install a package owning a dir then
you remove this dir manually and try install a second package also owning
the dir.
For example:
apk add e2fsprogs-dev
rm -rf /usr/lib/pkgconfig
apk add zlib-dev
2009-01-22 10:34:03 +00:00
Natanael Copa
dfc8d4ce4c
Revert "Revert "pkg: use absolute filenames for packages""
...
This reverts commit 600f9e7e03
.
My bad. This was correct.
2009-01-21 09:59:12 +00:00
Natanael Copa
600f9e7e03
Revert "pkg: use absolute filenames for packages"
...
This reverts commit 46430ceb56
.
The problem this was suppoed to fix was fixed by letting apk_db_open()
return with same working dir.
2009-01-21 09:04:31 +00:00
Natanael Copa
02073e84d6
db: let apk_db_open() leave working dir as it was
2009-01-21 09:03:10 +00:00
Natanael Copa
8a07b7fc72
release 2.0_pre6
2009-01-20 14:10:29 +00:00
Natanael Copa
6078d305f4
info: don't print package name unless its installed
2009-01-20 13:26:06 +00:00
Natanael Copa
20d242a4bd
info: list contents with -L
2009-01-20 13:04:17 +00:00
Timo Teras
46430ceb56
pkg: use absolute filenames for packages
2009-01-20 14:30:07 +02:00
Timo Teras
aee61d0a0b
db: try creating db if locking fails
...
Otherwise creating rootfs from scratch with --initdb cannot be locked
due to the lock file path missing.
2009-01-19 21:19:36 +02:00
Natanael Copa
93cdb993a1
release 2.0_pre5
2009-01-18 14:51:08 +00:00
Natanael Copa
57407ed4e9
db: create .apk-new even if file not in db
...
Protect files in protected dirs even if the file is not previously
registered in the database. We do so by always extracting to a
.apk-new file name, compare the checksums afterwards and rename if
file was identical.
2009-01-18 14:49:18 +01:00
Timo Teras
4d5efe6a05
archive: utimes modifies file, not link so don't use it for symlinks
2009-01-17 13:34:18 +02:00
Timo Teras
0365f7462b
archive: preserve mtime on extraction
2009-01-17 11:42:15 +02:00
Timo Teras
a98b57b1ae
db: database locking and creation to part of opening it
...
Add flags field to db open call. Also make error reporting quite a bit
more detailed.
2009-01-17 11:08:48 +02:00
Natanael Copa
24b424a458
apk: added option --version/-V
...
Both variants should work:
apk --version
apk <applet> --version
2009-01-17 08:51:52 +00:00
Natanael Copa
f88f8205a7
archive: set suid bit after chown if needed
...
chown will reset the suid bit so we need to set it again.
2009-01-17 08:06:23 +00:00
Timo Teras
1a9cc552a5
del: proper ordering of file db entry deletion
2009-01-17 09:33:02 +02:00
Natanael Copa
298b5994ce
release 2.0_pre4
2009-01-16 14:47:42 +00:00
Natanael Copa
2900147070
Merge branch 'master' of ssh://dev.alpinelinux.org/gitroot/apk-tools
2009-01-16 14:37:08 +00:00
Timo Teras
edfaac3099
db: apk_db_read_state() needs to be before apk_db_add_repository()
...
Otherwise installed db load fails due to internal reasons. This would
cause a lot of other funny stuff happen.
2009-01-16 16:25:19 +02:00
Natanael Copa
cf08b74809
Merge branch 'master' of ssh://dev.alpinelinux.org/gitroot/apk-tools
2009-01-16 14:09:52 +00:00
Timo Teras
82b9cb31fd
db: make fetching from other than first repository work
2009-01-16 15:38:04 +02:00
Natanael Copa
61341384b3
Merge branch 'master' of ssh://dev.alpinelinux.org/gitroot/apk-tools
2009-01-16 13:18:47 +00:00
Timo Teras
1b5422fb4a
index: write out only packages specified in command line
...
Ignore /etc/apk/repositories, so additional repositories that depend
on other repositories need to have explicit --repository reference on
command line when generating the index (to avoid warnings).
2009-01-16 15:14:23 +02:00
Natanael Copa
500778f45e
Merge branch 'master' of ssh://dev.alpinelinux.org/gitroot/apk-tools
2009-01-16 12:56:20 +00:00
Timo Teras
6b6c10cdf2
db: fix relative --root to work after apk_db_create call
...
This was broke on --initdb addition to add applet since apk_db_create
changes the working directory.
2009-01-16 14:52:47 +02:00
Timo Teras
3e6fc1389f
add: --upgrade|-u to control if upgrading is preferred or not
2009-01-16 13:59:36 +02:00
Natanael Copa
e975214704
release 2.0_pre3
2009-01-16 10:11:27 +00:00
Natanael Copa
6354a27888
Makefile: added 'make static' target to build apk.static
2009-01-16 10:10:29 +00:00
Natanael Copa
7a50aa61b2
url: allow wget report error messages
2009-01-16 09:58:27 +00:00
Natanael Copa
d8837aa6f4
apk: fix --root/-p option
2009-01-16 09:57:53 +00:00
Natanael Copa
33cb598bdf
apk: short option for --root is -p
...
Used to be so in the really old days of apk.
2009-01-16 09:44:49 +00:00
Natanael Copa
50daa05773
info: only show package desc when --verbose
...
also introduce apk_verbosity. --quiet reduce verbosity and --verbose
increases it.
Default verbosity is 1.
2009-01-16 09:33:55 +00:00