summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2009-01-21Revert "Revert "pkg: use absolute filenames for packages""Natanael Copa1-2/+7
This reverts commit 600f9e7e031c9e7244e078f35ec6c8dce1011149. My bad. This was correct.
2009-01-21Revert "pkg: use absolute filenames for packages"Natanael Copa1-7/+2
This reverts commit 46430ceb5607ac9e395432648c6a8c1a7cbceaf1. The problem this was suppoed to fix was fixed by letting apk_db_open() return with same working dir.
2009-01-21db: let apk_db_open() leave working dir as it wasNatanael Copa1-0/+2
2009-01-20info: don't print package name unless its installedNatanael Copa1-1/+2
2009-01-20info: list contents with -LNatanael Copa1-0/+43
2009-01-20pkg: use absolute filenames for packagesTimo Teras1-2/+7
2009-01-19db: try creating db if locking failsTimo Teras1-0/+10
Otherwise creating rootfs from scratch with --initdb cannot be locked due to the lock file path missing.
2009-01-18db: create .apk-new even if file not in dbNatanael Copa1-5/+8
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-17archive: utimes modifies file, not link so don't use it for symlinksTimo Teras1-7/+9
2009-01-17archive: preserve mtime on extractionapk-tools-2.0_pre4Timo Teras1-8/+27
2009-01-17db: database locking and creation to part of opening itTimo Teras8-79/+111
Add flags field to db open call. Also make error reporting quite a bit more detailed.
2009-01-17apk: added option --version/-VNatanael Copa1-14/+25
Both variants should work: apk --version apk <applet> --version
2009-01-17archive: set suid bit after chown if neededNatanael Copa1-0/+6
chown will reset the suid bit so we need to set it again.
2009-01-17del: proper ordering of file db entry deletionTimo Teras2-6/+3
2009-01-16db: apk_db_read_state() needs to be before apk_db_add_repository()Timo Teras1-9/+13
Otherwise installed db load fails due to internal reasons. This would cause a lot of other funny stuff happen.
2009-01-16db: make fetching from other than first repository workTimo Teras1-2/+13
2009-01-16index: write out only packages specified in command lineTimo Teras3-20/+33
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-16db: fix relative --root to work after apk_db_create callTimo Teras1-0/+1
This was broke on --initdb addition to add applet since apk_db_create changes the working directory.
2009-01-16add: --upgrade|-u to control if upgrading is preferred or notTimo Teras8-21/+17
2009-01-16Makefile: added 'make static' target to build apk.staticNatanael Copa1-0/+3
2009-01-16url: allow wget report error messagesNatanael Copa1-2/+1
2009-01-16apk: fix --root/-p optionNatanael Copa1-1/+1
2009-01-16apk: short option for --root is -pNatanael Copa1-1/+1
Used to be so in the really old days of apk.
2009-01-16info: only show package desc when --verboseNatanael Copa4-11/+17
also introduce apk_verbosity. --quiet reduce verbosity and --verbose increases it. Default verbosity is 1.
2009-01-16db: set the perms to /var/lib/apk/* to 644Natanael Copa1-4/+4
this allows non-root users to query the database.
2009-01-16db, hash: fix package purging/upgrading to update filedb properlyTimo Teras2-45/+81
2009-01-16db: try create root in case it does not existNatanael Copa1-0/+1
But we dont bother try create all subdirs (i.e mkdir -p ...)
2009-01-15db: index file location is a URLTimo Teras3-1/+8
2009-01-15apk: isalnum() takes only unsigned char values add explicit check for thatTimo Teras1-1/+2
2009-01-14audit: new command to check changed filesTimo Teras4-15/+178
Currently only implement --backup to get list of (config) files in protected directories to backup. This also fixes a database corruption bug in database.c.
2009-01-14db: keep only filename in file entries, hash by both directory and fileTimo Teras4-29/+77
2009-01-13add: --initdb to replace create appletTimo Teras4-53/+62
2009-01-13db: hash files by name, instead of keep two directory listsTimo Teras2-81/+62
2009-01-13state: fix again changeset orderingTimo Teras1-2/+2
2009-01-13info: implement who owns packages query (apk_info -W)Timo Teras4-8/+81
In quiet mode e.g. "apk info -q -W <file list>" a list of dependencies suitable for .PKGINFO is output in one line.
2009-01-13state: fix generation of change-set to honour dependenciesTimo Teras1-2/+6
2009-01-13apk: per applet optionsTimo Teras10-46/+163
2009-01-13state: install packages in dependency order (not reverse)Timo Teras1-1/+1
2009-01-13pkg: use generic blob functions to parse dependenciesTimo Teras1-38/+36
2009-01-13apk: honour --root command line switchTimo Teras1-1/+2
Was broken by earlier ROOT environment commit.
2009-01-12apk: support for ROOT environment variableNatanael Copa1-1/+5
2009-01-11db, package: new dependency format, second tryNatanael Copa2-6/+6
dependencies are separated with single space rather than ', '. makes db file slightly easier to parse from a shell script which might be handy.
2009-01-09Makefile: build the info appletNatanael Copa1-0/+1
2009-01-09info: new appletNatanael Copa1-0/+43
so far it only lists installed packages
2009-01-09Revert "db: change format for dependencies"Natanael Copa1-3/+3
This reverts commit b852d670a985c4da11b012707acaa63b8abdfadc.
2009-01-09db: report error when create db in non-existing dirNatanael Copa1-1/+4
2009-01-08db: change format for dependenciesNatanael Copa1-3/+3
Each dep is separated with a single space. I.E: D:dep1 dep2 dep3
2009-01-08db: allow comments and empty lines in repositories fileNatanael Copa1-0/+4
2009-01-08src/database.c: get repository file from environment variable APK_REPOSNatanael Copa1-2/+5
Defaults to /etc/apk/repositories, absolute path and not relative the install root.
2009-01-08src/package.c: fix compiler warning on 64 bit hostsNatanael Copa1-2/+2