]> pd.if.org Git - zpackage/log
zpackage
5 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

5 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.

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

5 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.

5 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

5 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.

5 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.

5 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

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

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

5 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

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

5 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

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

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

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

5 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.

5 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

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

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

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

5 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

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

5 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.

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

5 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

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

5 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

5 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

5 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

5 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

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

5 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

5 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

5 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

5 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

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

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

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

5 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

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

5 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

5 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

5 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.

5 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

5 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

5 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

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

5 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

5 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

5 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

5 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

5 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

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

5 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

5 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.

5 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

5 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

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

5 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

5 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.

5 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

5 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

5 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

5 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.

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

5 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.

5 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

5 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

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

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

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

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

5 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

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

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

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

5 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

5 years agosanitize packages table
Nathan Wagner [Sat, 15 Sep 2018 02:05:55 +0000 (02:05 +0000)]
sanitize packages table

Added check constraints, and removed pkgid column.  Added a
view packages_pkgid with the pkgid column constructed from
the package, version, and release columns.

5 years agoadd target for jsw library
Nathan Wagner [Fri, 14 Sep 2018 09:53:29 +0000 (09:53 +0000)]
add target for jsw library

5 years agocreate combined single header for jsw library
Nathan Wagner [Fri, 14 Sep 2018 08:19:31 +0000 (08:19 +0000)]
create combined single header for jsw library

5 years agofix table resize bug in jsw_hlib
Nathan Wagner [Mon, 17 Sep 2018 12:05:35 +0000 (12:05 +0000)]
fix table resize bug in jsw_hlib

5 years agoremove c++isms from jsw code
Nathan Wagner [Fri, 14 Sep 2018 08:12:28 +0000 (08:12 +0000)]
remove c++isms from jsw code

removed malloc casts and header externs

5 years agoadd jsw data structure code
Nathan Wagner [Fri, 14 Sep 2018 08:06:51 +0000 (08:06 +0000)]
add jsw data structure code

http://www.eternallyconfuzzled.com/jsw_home.aspx

5 years agofix pkginfo and list files in package
Nathan Wagner [Fri, 14 Sep 2018 04:45:47 +0000 (04:45 +0000)]
fix pkginfo and list files in package

5 years agoadd structs for packages and other objects
Nathan Wagner [Fri, 14 Sep 2018 04:43:31 +0000 (04:43 +0000)]
add structs for packages and other objects

5 years agocorrect default make target
Nathan Wagner [Fri, 14 Sep 2018 04:39:46 +0000 (04:39 +0000)]
correct default make target

5 years agoadd make target for foreach-path
Nathan Wagner [Tue, 11 Sep 2018 20:43:51 +0000 (20:43 +0000)]
add make target for foreach-path

5 years agoadd program to run a command for each package file
Nathan Wagner [Tue, 11 Sep 2018 10:57:01 +0000 (10:57 +0000)]
add program to run a command for each package file

5 years agoadd foreach_path to zpm library
Nathan Wagner [Wed, 12 Sep 2018 11:09:20 +0000 (11:09 +0000)]
add foreach_path to zpm library

5 years agouse lzma from xz 5.2.4
Nathan Wagner [Sun, 9 Sep 2018 12:59:21 +0000 (12:59 +0000)]
use lzma from xz 5.2.4

5 years agoadd make target to update lzma
Nathan Wagner [Sun, 9 Sep 2018 12:58:41 +0000 (12:58 +0000)]
add make target to update lzma

5 years agofix exit status for zpm-hash
Nathan Wagner [Thu, 23 Aug 2018 11:16:32 +0000 (11:16 +0000)]
fix exit status for zpm-hash

5 years agoadd conflict checking for installs
Nathan Wagner [Tue, 21 Aug 2018 19:17:28 +0000 (19:17 +0000)]
add conflict checking for installs

5 years agoadd views useful for installs and uninstalls
Nathan Wagner [Tue, 21 Aug 2018 17:33:16 +0000 (17:33 +0000)]
add views useful for installs and uninstalls

5 years agoquote shell variables
Nathan Wagner [Tue, 21 Aug 2018 15:05:19 +0000 (15:05 +0000)]
quote shell variables

5 years agohave ctap prove read from stdin
Nathan Wagner [Tue, 21 Aug 2018 11:20:40 +0000 (11:20 +0000)]
have ctap prove read from stdin

5 years agoget install upgrades working
Nathan Wagner [Tue, 21 Aug 2018 11:19:44 +0000 (11:19 +0000)]
get install upgrades working

5 years agochange release version to 0.1.3
Nathan Wagner [Tue, 21 Aug 2018 11:19:02 +0000 (11:19 +0000)]
change release version to 0.1.3

5 years agoadd check constraints to package release
Nathan Wagner [Tue, 21 Aug 2018 11:18:35 +0000 (11:18 +0000)]
add check constraints to package release