bundle_read_install_pkg.c

Checkout Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
revert recursive query logic. does not play nice with libdispatch

  1. … 7 more files in changeset.
do not treat it as a pattern

add error checks and memory cleanup

fix debug

use proper format

add missing fields to pkg insert

Add partial support for multi argument sample syntax. @sample src dest. Does not remove the created file on uninstall.

  1. … 1 more file in changeset.
code cleanup and locking fixes

    • -397
    • +405
    ./bundle_read_install_pkg.c
  1. … 3 more files in changeset.
fix locking

fix some potential thread safety issues with sqlite access

    • -103
    • +133
    ./bundle_read_install_pkg.c
  1. … 1 more file in changeset.
fix mode logic

handle null case for owner/group/mode and also allow data to be empty string if a command like @owner with no params is used

change the order we fetch things

fix error handler after refactor

  1. … 1 more file in changeset.
fix a double free and add retry code on a locked database

  1. … 1 more file in changeset.
remove logevent call

fix order

convert pre and post to use shared code. This allows us to use the serial queue for sql access and reuse code

move installed event back where it goes. there is a postexec event anyway., migrate to a serial queue for asset list

  1. … 1 more file in changeset.
call finalize when we fail

  1. … 10 more files in changeset.
get rid of an unused var

use a tailq rather than a select intermixed with inserts. this will limit possible issues since we are using the same connection to the db

  1. … 1 more file in changeset.
add sanity check

mark package clean/installed only after post install steps now.

add logging to syslog when a package fails to install. Refactor several parts of do_actual_install into their own functions. Add error handling for sample files.

refactor count code into its own method

formatting fixes

merge changes from 0.8

  1. … 5 more files in changeset.
first pass at handling directory perms with @dir() syntax

fix path issue on deletes by catching absolute paths and storing them properly in the master database. This should help with verify as well.