]>
pd.if.org Git - zpackage/log
Nathan Wagner [Fri, 12 Oct 2018 22:28:38 +0000 (22:28 +0000)]
add elftype as zpm-elftype
Nathan Wagner [Fri, 12 Oct 2018 11:12:48 +0000 (11:12 +0000)]
add c tap files
Nathan Wagner [Fri, 12 Oct 2018 11:08:33 +0000 (11:08 +0000)]
add zpm-verify
Nathan Wagner [Fri, 12 Oct 2018 11:07:49 +0000 (11:07 +0000)]
add where filter argument to foreach-path
Nathan Wagner [Fri, 12 Oct 2018 11:07:24 +0000 (11:07 +0000)]
make internal column function static
Nathan Wagner [Fri, 12 Oct 2018 07:15:52 +0000 (07:15 +0000)]
add program to generate a hash of package contents
renamed checksum to hash in the package table
Nathan Wagner [Thu, 11 Oct 2018 21:23:02 +0000 (21:23 +0000)]
rewrite syncfs to handle updates and overwrites
Nathan Wagner [Mon, 8 Oct 2018 17:41:16 +0000 (17:41 +0000)]
add pass through absorb and overwrite options
Nathan Wagner [Mon, 8 Oct 2018 01:20:00 +0000 (01:20 +0000)]
improve error reporting in syncfs
Nathan Wagner [Sat, 6 Oct 2018 18:14:20 +0000 (18:14 +0000)]
change syncfs to use new view
Nathan Wagner [Sat, 6 Oct 2018 17:58:09 +0000 (17:58 +0000)]
add option to show install scripts
Nathan Wagner [Sat, 6 Oct 2018 17:57:40 +0000 (17:57 +0000)]
merge elf information
Nathan Wagner [Sat, 6 Oct 2018 17:56:17 +0000 (17:56 +0000)]
add new view for filesystem sync
Nathan Wagner [Sat, 6 Oct 2018 17:56:04 +0000 (17:56 +0000)]
fix potential use after free
Nathan Wagner [Mon, 1 Oct 2018 16:27:25 +0000 (16:27 +0000)]
remove unused elf tables, add elf summary view
Nathan Wagner [Mon, 1 Oct 2018 15:17:55 +0000 (15:17 +0000)]
remove foreign key on files from elf tables
Nathan Wagner [Sun, 30 Sep 2018 23:09:18 +0000 (23:09 +0000)]
rollback on initialize failure
Nathan Wagner [Sun, 30 Sep 2018 17:24:10 +0000 (17:24 +0000)]
pass script phase as arg 0
Nathan Wagner [Sun, 30 Sep 2018 17:23:48 +0000 (17:23 +0000)]
look for ldconfig in rootdir
Nathan Wagner [Sun, 30 Sep 2018 15:28:56 +0000 (15:28 +0000)]
check for db init failure in install
Nathan Wagner [Sun, 30 Sep 2018 15:28:08 +0000 (15:28 +0000)]
add verbose option to contents
Nathan Wagner [Sun, 30 Sep 2018 15:27:37 +0000 (15:27 +0000)]
cleanup error handling in zpm_init
Nathan Wagner [Sun, 30 Sep 2018 14:52:17 +0000 (14:52 +0000)]
add pathmod to scripts for install
Nathan Wagner [Sun, 30 Sep 2018 14:48:53 +0000 (14:48 +0000)]
add verbose option to pathmod
The -v option will add in the owner, type, and permissions columns to
the output.
Changed the output delimiter to a space.
Nathan Wagner [Sun, 30 Sep 2018 14:44:10 +0000 (14:44 +0000)]
fixup db packagefiles trigger
Nathan Wagner [Sun, 30 Sep 2018 13:02:22 +0000 (13:02 +0000)]
add packagefiles_pkgid update trigger
Added check constraints on packagefiles columns.
Nathan Wagner [Sun, 30 Sep 2018 12:39:13 +0000 (12:39 +0000)]
install will init the localdb if it does not exist
Nathan Wagner [Sun, 30 Sep 2018 12:36:13 +0000 (12:36 +0000)]
improve default local database
Where a local database is not specified on the command line, and a root
directory is, zpm-install will now use var/lib/zpm/local.db inside the
root directory for the local database.
install is now smarter about finding a package to install within
the package file.
Nathan Wagner [Sun, 30 Sep 2018 12:15:05 +0000 (12:15 +0000)]
add option to zpm-add to not absorb file content
With -N file contents of regular files will not be added to the
database, only the metadata will be added to packagefiles. This allows
a file to be marked as "owned" by a package, without actually importing
the contents.
Nathan Wagner [Sun, 30 Sep 2018 12:09:14 +0000 (12:09 +0000)]
run syncfs with -v if install is verbose
Nathan Wagner [Sun, 30 Sep 2018 12:08:51 +0000 (12:08 +0000)]
fix installing of symlinks
Nathan Wagner [Sun, 30 Sep 2018 11:32:50 +0000 (11:32 +0000)]
run ldconfig after install
Nathan Wagner [Sun, 30 Sep 2018 02:47:58 +0000 (02:47 +0000)]
cleanup and fix bugs in addfile
Nathan Wagner [Sun, 30 Sep 2018 02:47:54 +0000 (02:47 +0000)]
remove -ldl from makefile
Nathan Wagner [Sat, 29 Sep 2018 22:47:26 +0000 (22:47 +0000)]
remove release special handling from vercmp
Nathan Wagner [Sat, 29 Sep 2018 22:35:06 +0000 (22:35 +0000)]
fix pointer related bugs
Nathan Wagner [Sat, 29 Sep 2018 21:47:17 +0000 (21:47 +0000)]
fix uninitialized variable
Nathan Wagner [Sat, 29 Sep 2018 21:47:06 +0000 (21:47 +0000)]
separate parse from findpkg
Nathan Wagner [Sat, 29 Sep 2018 20:03:22 +0000 (20:03 +0000)]
enable static linked builds
The sqlite loadable extension interface uses libdl, so it is now
omitted from the sqlite3 library and zpm-shell. The -ldl linker
option isn't needed, and -static is.
There is also a commented out CC to use musl as the C library. Glibc
doesn't actually support static linking, as it uses libdl for
various name service switch libraries. The package system doesn't
need to do that, and static linking the binaries reduces dependencies
and eliminates library issues which could make the system unusable.
Nathan Wagner [Fri, 28 Sep 2018 22:51:16 +0000 (22:51 +0000)]
add metadata string to packagefiles view
Nathan Wagner [Fri, 28 Sep 2018 18:09:01 +0000 (18:09 +0000)]
add zpm-uninstall to makefile
Nathan Wagner [Fri, 28 Sep 2018 18:05:26 +0000 (18:05 +0000)]
add install root for tests
Nathan Wagner [Fri, 28 Sep 2018 18:05:01 +0000 (18:05 +0000)]
add error checks for unlink
Nathan Wagner [Fri, 28 Sep 2018 17:54:24 +0000 (17:54 +0000)]
change findpkg to use -f option
Nathan Wagner [Tue, 25 Sep 2018 10:06:01 +0000 (10:06 +0000)]
rename pkgfiles to syncfs
Nathan Wagner [Tue, 25 Sep 2018 10:02:32 +0000 (10:02 +0000)]
remove pkgid argument from pkgfiles
zpm-pkgfiles only reported the pkgid, but it didn't restrict
what was done. The actions are determined by the package statuses
and the install_status view.
Nathan Wagner [Tue, 25 Sep 2018 10:01:14 +0000 (10:01 +0000)]
add pkgfiles to makefile
Nathan Wagner [Tue, 25 Sep 2018 09:54:05 +0000 (09:54 +0000)]
remove tmpinstall and tmpupgrade make targets
Nathan Wagner [Mon, 24 Sep 2018 23:10:57 +0000 (23:10 +0000)]
cleanup makefile and other files
Nathan Wagner [Mon, 24 Sep 2018 21:06:20 +0000 (21:06 +0000)]
add test for pre-install script failure
Nathan Wagner [Mon, 24 Sep 2018 21:06:00 +0000 (21:06 +0000)]
check for file extract failure in runscript
Nathan Wagner [Mon, 24 Sep 2018 13:05:23 +0000 (13:05 +0000)]
bump sqlite to 3.25.1
Nathan Wagner [Mon, 24 Sep 2018 12:49:59 +0000 (12:49 +0000)]
add tests for more package installs
Nathan Wagner [Mon, 24 Sep 2018 12:04:12 +0000 (12:04 +0000)]
support symlinks in zpm-add
Nathan Wagner [Mon, 24 Sep 2018 12:02:52 +0000 (12:02 +0000)]
add symlink support to pkgfiles
add checks for zero length paths
Nathan Wagner [Mon, 24 Sep 2018 11:27:47 +0000 (11:27 +0000)]
fix eval variable name in zpm-list
Nathan Wagner [Mon, 24 Sep 2018 08:12:56 +0000 (08:12 +0000)]
add test file for install
adjust tap.sh
Nathan Wagner [Mon, 24 Sep 2018 08:11:45 +0000 (08:11 +0000)]
add verbose option to add and install
Nathan Wagner [Sun, 23 Sep 2018 18:53:01 +0000 (18:53 +0000)]
add basics test
Nathan Wagner [Sun, 23 Sep 2018 14:42:19 +0000 (14:42 +0000)]
add zpm-list
Nathan Wagner [Sun, 23 Sep 2018 08:12:39 +0000 (08:12 +0000)]
rewrite zpm-install
Nathan Wagner [Sun, 23 Sep 2018 08:10:59 +0000 (08:10 +0000)]
alter zpm-pkg syntax
allows setting multiple items in one transaction
Nathan Wagner [Sun, 23 Sep 2018 08:10:39 +0000 (08:10 +0000)]
add zpm-pkgfiles
Nathan Wagner [Sun, 23 Sep 2018 08:01:32 +0000 (08:01 +0000)]
add zpm-quote option to shell quoting
Add -s to shell quote, and -q to add single quotes around the
quoted string. Default behavior is to quote for sqlite and
not add quotes.
add sql identifier quoting
Nathan Wagner [Sun, 23 Sep 2018 01:41:51 +0000 (01:41 +0000)]
use ZPMDB as package database if needed
exit non-zero if findpkg doesn't find a package
Nathan Wagner [Fri, 21 Sep 2018 22:26:26 +0000 (22:26 +0000)]
add -o option to runscript
honor ZPM_ROOT_DIR environment variable
Change directory to either / or the rootdir. Actually doing a chroot(2)
call is apparently deprecated and has been removed from posix. Doing
this will require OS specific code. Unless and until that is done,
scripts will need to be aware of that and make changes in the correct
place.
Nathan Wagner [Sun, 23 Sep 2018 02:15:48 +0000 (02:15 +0000)]
add vercmp at zpm open or init
Nathan Wagner [Fri, 21 Sep 2018 10:01:49 +0000 (10:01 +0000)]
add check for different hash in install_status
cleanup schema, add foreign key cascades
fix query to find files for removal at upgrade
Nathan Wagner [Fri, 21 Sep 2018 09:04:28 +0000 (09:04 +0000)]
remove foreign key from elf tables
The tables need to be able to be populated even if the file content
isn't available.
cleanup elf info setting
Nathan Wagner [Fri, 21 Sep 2018 08:48:50 +0000 (08:48 +0000)]
add zpm-merge
Nathan Wagner [Fri, 21 Sep 2018 07:51:15 +0000 (07:51 +0000)]
add shell tap functions
improve shell tap diag output
Nathan Wagner [Fri, 21 Sep 2018 07:08:31 +0000 (07:08 +0000)]
add define for local db default path
Nathan Wagner [Wed, 19 Sep 2018 11:32:04 +0000 (11:32 +0000)]
add views for installing and upgrading packages
add checks and not nulls to packagefiles
add test file for database schema
Nathan Wagner [Mon, 17 Sep 2018 12:05:13 +0000 (12:05 +0000)]
add error checks to foreach_path
add usage message to foreach-path
fix path for local database
Nathan Wagner [Mon, 17 Sep 2018 12:02:15 +0000 (12:02 +0000)]
ignore missing runscript by default
Added option -R to require that there be one.
add zpm-runscript to .gitignore
add tests for required runscript phase
add script to test runscript
Nathan Wagner [Mon, 17 Sep 2018 12:18:16 +0000 (12:18 +0000)]
remove dupstr and readopts
Nathan Wagner [Mon, 17 Sep 2018 11:35:16 +0000 (11:35 +0000)]
change test scripts to init a new zpm db
Nathan Wagner [Mon, 17 Sep 2018 11:34:29 +0000 (11:34 +0000)]
use stage instead of phase in script_hash
add zpm-runscript to makefile
improve error handling in script_hash.
Nathan Wagner [Mon, 17 Sep 2018 11:31:53 +0000 (11:31 +0000)]
separate zpm library database create and open
use new init function in zpm-init
exit with error if addfile db open fails
Nathan Wagner [Mon, 17 Sep 2018 11:29:05 +0000 (11:29 +0000)]
use stage instead of phase in dbquery
Nathan Wagner [Sun, 16 Sep 2018 17:23:28 +0000 (17:23 +0000)]
fix double free bug
Nathan Wagner [Sun, 16 Sep 2018 16:50:01 +0000 (16:50 +0000)]
initialize struct members in zpm_open
Nathan Wagner [Sun, 16 Sep 2018 13:22:00 +0000 (13:22 +0000)]
add scripts_pkgid view
Added more constraint checks on package id columns.
Added primary and foreign keys to scripts table.
Nathan Wagner [Sun, 16 Sep 2018 13:17:54 +0000 (13:17 +0000)]
cleanup makefile and add library source
Nathan Wagner [Sun, 16 Sep 2018 13:16:30 +0000 (13:16 +0000)]
add functions to find scripts and run a query
Nathan Wagner [Sun, 16 Sep 2018 01:54:58 +0000 (01:54 +0000)]
improve newpackage file and package id logic
Nathan Wagner [Sun, 16 Sep 2018 01:54:03 +0000 (01:54 +0000)]
derive zpm package version from git tag
Fix package target to use updated newpackage syntax.
Nathan Wagner [Sat, 15 Sep 2018 12:25:09 +0000 (12:25 +0000)]
rework zpm-add
Nathan Wagner [Sat, 15 Sep 2018 11:42:41 +0000 (11:42 +0000)]
add create option to zpm-newpackage
Use environment variable ZPM_PACKAGE_FILE for package file name or
construct from package id.
Nathan Wagner [Sat, 15 Sep 2018 11:37:33 +0000 (11:37 +0000)]
remove create option to zpm-add
Nathan Wagner [Sat, 15 Sep 2018 09:48:36 +0000 (09:48 +0000)]
check for disallowed characters in package ids
Nathan Wagner [Sat, 15 Sep 2018 09:28:57 +0000 (09:28 +0000)]
renamed addtopackage to add
Nathan Wagner [Sat, 15 Sep 2018 09:03:00 +0000 (09:03 +0000)]
add zpm-parse program
Nathan Wagner [Sat, 15 Sep 2018 08:49:19 +0000 (08:49 +0000)]
cast sqlite3 for char signedness
Nathan Wagner [Sat, 15 Sep 2018 08:48:09 +0000 (08:48 +0000)]
use posix strdup in findpkg
Nathan Wagner [Sat, 15 Sep 2018 08:19:27 +0000 (08:19 +0000)]
add zpm program to quote strings for sqlite
Nathan Wagner [Sat, 15 Sep 2018 08:36:18 +0000 (08:36 +0000)]
add library findpkg and quote
Nathan Wagner [Sat, 15 Sep 2018 08:19:12 +0000 (08:19 +0000)]
add library function to quote
Nathan Wagner [Sat, 15 Sep 2018 08:11:41 +0000 (08:11 +0000)]
remove lzma/fastpos_tablegen.c
Nathan Wagner [Sat, 15 Sep 2018 08:03:29 +0000 (08:03 +0000)]
add zpm function to quote a string for sqlite