]> pd.if.org Git - zpackage/log
zpackage
5 years agoadd elftype as zpm-elftype
Nathan Wagner [Fri, 12 Oct 2018 22:28:38 +0000 (22:28 +0000)]
add elftype as zpm-elftype

5 years agoadd c tap files
Nathan Wagner [Fri, 12 Oct 2018 11:12:48 +0000 (11:12 +0000)]
add c tap files

5 years agoadd zpm-verify
Nathan Wagner [Fri, 12 Oct 2018 11:08:33 +0000 (11:08 +0000)]
add zpm-verify

6 years agoadd where filter argument to foreach-path
Nathan Wagner [Fri, 12 Oct 2018 11:07:49 +0000 (11:07 +0000)]
add where filter argument to foreach-path

6 years agomake internal column function static
Nathan Wagner [Fri, 12 Oct 2018 11:07:24 +0000 (11:07 +0000)]
make internal column function static

6 years agoadd program to generate a hash of package contents
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

6 years agorewrite syncfs to handle updates and overwrites
Nathan Wagner [Thu, 11 Oct 2018 21:23:02 +0000 (21:23 +0000)]
rewrite syncfs to handle updates and overwrites

6 years agoadd pass through absorb and overwrite options v0.2.0
Nathan Wagner [Mon, 8 Oct 2018 17:41:16 +0000 (17:41 +0000)]
add pass through absorb and overwrite options

6 years agoimprove error reporting in syncfs
Nathan Wagner [Mon, 8 Oct 2018 01:20:00 +0000 (01:20 +0000)]
improve error reporting in syncfs

6 years agochange syncfs to use new view
Nathan Wagner [Sat, 6 Oct 2018 18:14:20 +0000 (18:14 +0000)]
change syncfs to use new view

6 years agoadd option to show install scripts
Nathan Wagner [Sat, 6 Oct 2018 17:58:09 +0000 (17:58 +0000)]
add option to show install scripts

6 years agomerge elf information
Nathan Wagner [Sat, 6 Oct 2018 17:57:40 +0000 (17:57 +0000)]
merge elf information

6 years agoadd new view for filesystem sync
Nathan Wagner [Sat, 6 Oct 2018 17:56:17 +0000 (17:56 +0000)]
add new view for filesystem sync

6 years agofix potential use after free
Nathan Wagner [Sat, 6 Oct 2018 17:56:04 +0000 (17:56 +0000)]
fix potential use after free

6 years agoremove unused elf tables, add elf summary view
Nathan Wagner [Mon, 1 Oct 2018 16:27:25 +0000 (16:27 +0000)]
remove unused elf tables, add elf summary view

6 years agoremove foreign key on files from elf tables
Nathan Wagner [Mon, 1 Oct 2018 15:17:55 +0000 (15:17 +0000)]
remove foreign key on files from elf tables

6 years agorollback on initialize failure
Nathan Wagner [Sun, 30 Sep 2018 23:09:18 +0000 (23:09 +0000)]
rollback on initialize failure

6 years agopass script phase as arg 0
Nathan Wagner [Sun, 30 Sep 2018 17:24:10 +0000 (17:24 +0000)]
pass script phase as arg 0

6 years agolook for ldconfig in rootdir
Nathan Wagner [Sun, 30 Sep 2018 17:23:48 +0000 (17:23 +0000)]
look for ldconfig in rootdir

6 years agocheck for db init failure in install
Nathan Wagner [Sun, 30 Sep 2018 15:28:56 +0000 (15:28 +0000)]
check for db init failure in install

6 years agoadd verbose option to contents
Nathan Wagner [Sun, 30 Sep 2018 15:28:08 +0000 (15:28 +0000)]
add verbose option to contents

6 years agocleanup error handling in zpm_init
Nathan Wagner [Sun, 30 Sep 2018 15:27:37 +0000 (15:27 +0000)]
cleanup error handling in zpm_init

6 years agoadd pathmod to scripts for install v0.1.7
Nathan Wagner [Sun, 30 Sep 2018 14:52:17 +0000 (14:52 +0000)]
add pathmod to scripts for install

6 years agoadd verbose option to pathmod
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.

6 years agofixup db packagefiles trigger
Nathan Wagner [Sun, 30 Sep 2018 14:44:10 +0000 (14:44 +0000)]
fixup db packagefiles trigger

6 years agoadd packagefiles_pkgid update 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.

6 years agoinstall will init the localdb if it does not exist
Nathan Wagner [Sun, 30 Sep 2018 12:39:13 +0000 (12:39 +0000)]
install will init the localdb if it does not exist

6 years agoimprove default local database
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.

6 years agoadd option to zpm-add to not absorb file content
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.

6 years agorun syncfs with -v if install is verbose
Nathan Wagner [Sun, 30 Sep 2018 12:09:14 +0000 (12:09 +0000)]
run syncfs with -v if install is verbose

6 years agofix installing of symlinks
Nathan Wagner [Sun, 30 Sep 2018 12:08:51 +0000 (12:08 +0000)]
fix installing of symlinks

6 years agorun ldconfig after install
Nathan Wagner [Sun, 30 Sep 2018 11:32:50 +0000 (11:32 +0000)]
run ldconfig after install

6 years agocleanup and fix bugs in addfile
Nathan Wagner [Sun, 30 Sep 2018 02:47:58 +0000 (02:47 +0000)]
cleanup and fix bugs in addfile

6 years agoremove -ldl from makefile
Nathan Wagner [Sun, 30 Sep 2018 02:47:54 +0000 (02:47 +0000)]
remove -ldl from makefile

6 years agoremove release special handling from vercmp
Nathan Wagner [Sat, 29 Sep 2018 22:47:26 +0000 (22:47 +0000)]
remove release special handling from vercmp

6 years agofix pointer related bugs
Nathan Wagner [Sat, 29 Sep 2018 22:35:06 +0000 (22:35 +0000)]
fix pointer related bugs

6 years agofix uninitialized variable
Nathan Wagner [Sat, 29 Sep 2018 21:47:17 +0000 (21:47 +0000)]
fix uninitialized variable

6 years agoseparate parse from findpkg
Nathan Wagner [Sat, 29 Sep 2018 21:47:06 +0000 (21:47 +0000)]
separate parse from findpkg

6 years agoenable static linked builds
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.

6 years agoadd metadata string to packagefiles view
Nathan Wagner [Fri, 28 Sep 2018 22:51:16 +0000 (22:51 +0000)]
add metadata string to packagefiles view

6 years agoadd zpm-uninstall to makefile
Nathan Wagner [Fri, 28 Sep 2018 18:09:01 +0000 (18:09 +0000)]
add zpm-uninstall to makefile

6 years agoadd install root for tests
Nathan Wagner [Fri, 28 Sep 2018 18:05:26 +0000 (18:05 +0000)]
add install root for tests

6 years agoadd error checks for unlink
Nathan Wagner [Fri, 28 Sep 2018 18:05:01 +0000 (18:05 +0000)]
add error checks for unlink

6 years agochange findpkg to use -f option
Nathan Wagner [Fri, 28 Sep 2018 17:54:24 +0000 (17:54 +0000)]
change findpkg to use -f option

6 years agorename pkgfiles to syncfs
Nathan Wagner [Tue, 25 Sep 2018 10:06:01 +0000 (10:06 +0000)]
rename pkgfiles to syncfs

6 years agoremove pkgid argument from pkgfiles
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.

6 years agoadd pkgfiles to makefile
Nathan Wagner [Tue, 25 Sep 2018 10:01:14 +0000 (10:01 +0000)]
add pkgfiles to makefile

6 years agoremove tmpinstall and tmpupgrade make targets
Nathan Wagner [Tue, 25 Sep 2018 09:54:05 +0000 (09:54 +0000)]
remove tmpinstall and tmpupgrade make targets

6 years agocleanup makefile and other files
Nathan Wagner [Mon, 24 Sep 2018 23:10:57 +0000 (23:10 +0000)]
cleanup makefile and other files

6 years agoadd test for pre-install script failure
Nathan Wagner [Mon, 24 Sep 2018 21:06:20 +0000 (21:06 +0000)]
add test for pre-install script failure

6 years agocheck for file extract failure in runscript
Nathan Wagner [Mon, 24 Sep 2018 21:06:00 +0000 (21:06 +0000)]
check for file extract failure in runscript

6 years agobump sqlite to 3.25.1
Nathan Wagner [Mon, 24 Sep 2018 13:05:23 +0000 (13:05 +0000)]
bump sqlite to 3.25.1

6 years agoadd tests for more package installs
Nathan Wagner [Mon, 24 Sep 2018 12:49:59 +0000 (12:49 +0000)]
add tests for more package installs

6 years agosupport symlinks in zpm-add
Nathan Wagner [Mon, 24 Sep 2018 12:04:12 +0000 (12:04 +0000)]
support symlinks in zpm-add

6 years agoadd symlink support to pkgfiles
Nathan Wagner [Mon, 24 Sep 2018 12:02:52 +0000 (12:02 +0000)]
add symlink support to pkgfiles

add checks for zero length paths

6 years agofix eval variable name in zpm-list
Nathan Wagner [Mon, 24 Sep 2018 11:27:47 +0000 (11:27 +0000)]
fix eval variable name in zpm-list

6 years agoadd test file for install v0.1.6
Nathan Wagner [Mon, 24 Sep 2018 08:12:56 +0000 (08:12 +0000)]
add test file for install

adjust tap.sh

6 years agoadd verbose option to add and install
Nathan Wagner [Mon, 24 Sep 2018 08:11:45 +0000 (08:11 +0000)]
add verbose option to add and install

6 years agoadd basics test
Nathan Wagner [Sun, 23 Sep 2018 18:53:01 +0000 (18:53 +0000)]
add basics test

6 years agoadd zpm-list
Nathan Wagner [Sun, 23 Sep 2018 14:42:19 +0000 (14:42 +0000)]
add zpm-list

6 years agorewrite zpm-install
Nathan Wagner [Sun, 23 Sep 2018 08:12:39 +0000 (08:12 +0000)]
rewrite zpm-install

6 years agoalter zpm-pkg syntax
Nathan Wagner [Sun, 23 Sep 2018 08:10:59 +0000 (08:10 +0000)]
alter zpm-pkg syntax

allows setting multiple items in one transaction

6 years agoadd zpm-pkgfiles
Nathan Wagner [Sun, 23 Sep 2018 08:10:39 +0000 (08:10 +0000)]
add zpm-pkgfiles

6 years agoadd zpm-quote option to shell quoting
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

6 years agouse ZPMDB as package database if needed
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

6 years agoadd -o option to runscript
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.

6 years agoadd vercmp at zpm open or init
Nathan Wagner [Sun, 23 Sep 2018 02:15:48 +0000 (02:15 +0000)]
add vercmp at zpm open or init

6 years agoadd check for different hash in install_status
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

6 years agoremove foreign key from elf tables
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

6 years agoadd zpm-merge
Nathan Wagner [Fri, 21 Sep 2018 08:48:50 +0000 (08:48 +0000)]
add zpm-merge

6 years agoadd shell tap functions
Nathan Wagner [Fri, 21 Sep 2018 07:51:15 +0000 (07:51 +0000)]
add shell tap functions

improve shell tap diag output

6 years agoadd define for local db default path
Nathan Wagner [Fri, 21 Sep 2018 07:08:31 +0000 (07:08 +0000)]
add define for local db default path

6 years agoadd views for installing and upgrading packages
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

6 years agoadd error checks to foreach_path
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

6 years agoignore missing runscript by default
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

6 years agoremove dupstr and readopts
Nathan Wagner [Mon, 17 Sep 2018 12:18:16 +0000 (12:18 +0000)]
remove dupstr and readopts

6 years agochange test scripts to init a new zpm db
Nathan Wagner [Mon, 17 Sep 2018 11:35:16 +0000 (11:35 +0000)]
change test scripts to init a new zpm db

6 years agouse stage instead of phase in script_hash
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.

6 years agoseparate zpm library database create and open
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

6 years agouse stage instead of phase in dbquery
Nathan Wagner [Mon, 17 Sep 2018 11:29:05 +0000 (11:29 +0000)]
use stage instead of phase in dbquery

6 years agofix double free bug
Nathan Wagner [Sun, 16 Sep 2018 17:23:28 +0000 (17:23 +0000)]
fix double free bug

6 years agoinitialize struct members in zpm_open
Nathan Wagner [Sun, 16 Sep 2018 16:50:01 +0000 (16:50 +0000)]
initialize struct members in zpm_open

6 years agoadd scripts_pkgid view
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.

6 years agocleanup makefile and add library source
Nathan Wagner [Sun, 16 Sep 2018 13:17:54 +0000 (13:17 +0000)]
cleanup makefile and add library source

6 years agoadd functions to find scripts and run a query
Nathan Wagner [Sun, 16 Sep 2018 13:16:30 +0000 (13:16 +0000)]
add functions to find scripts and run a query

6 years agoimprove newpackage file and package id logic
Nathan Wagner [Sun, 16 Sep 2018 01:54:58 +0000 (01:54 +0000)]
improve newpackage file and package id logic

6 years agoderive zpm package version from git tag
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.

6 years agorework zpm-add
Nathan Wagner [Sat, 15 Sep 2018 12:25:09 +0000 (12:25 +0000)]
rework zpm-add

6 years agoadd create option to zpm-newpackage
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.

6 years agoremove create option to zpm-add
Nathan Wagner [Sat, 15 Sep 2018 11:37:33 +0000 (11:37 +0000)]
remove create option to zpm-add

6 years agocheck for disallowed characters in package ids
Nathan Wagner [Sat, 15 Sep 2018 09:48:36 +0000 (09:48 +0000)]
check for disallowed characters in package ids

6 years agorenamed addtopackage to add
Nathan Wagner [Sat, 15 Sep 2018 09:28:57 +0000 (09:28 +0000)]
renamed addtopackage to add

6 years agoadd zpm-parse program
Nathan Wagner [Sat, 15 Sep 2018 09:03:00 +0000 (09:03 +0000)]
add zpm-parse program

6 years agocast sqlite3 for char signedness
Nathan Wagner [Sat, 15 Sep 2018 08:49:19 +0000 (08:49 +0000)]
cast sqlite3 for char signedness

6 years agouse posix strdup in findpkg
Nathan Wagner [Sat, 15 Sep 2018 08:48:09 +0000 (08:48 +0000)]
use posix strdup in findpkg

6 years agoadd zpm program to quote strings for sqlite
Nathan Wagner [Sat, 15 Sep 2018 08:19:27 +0000 (08:19 +0000)]
add zpm program to quote strings for sqlite

6 years agoadd library findpkg and quote
Nathan Wagner [Sat, 15 Sep 2018 08:36:18 +0000 (08:36 +0000)]
add library findpkg and quote

6 years agoadd library function to quote
Nathan Wagner [Sat, 15 Sep 2018 08:19:12 +0000 (08:19 +0000)]
add library function to quote

6 years agoremove lzma/fastpos_tablegen.c
Nathan Wagner [Sat, 15 Sep 2018 08:11:41 +0000 (08:11 +0000)]
remove lzma/fastpos_tablegen.c

6 years agoadd zpm function to quote a string for sqlite
Nathan Wagner [Sat, 15 Sep 2018 08:03:29 +0000 (08:03 +0000)]
add zpm function to quote a string for sqlite