Module name:    pkg_install
Committed by:   jsonn
Date:           Thu Oct  5 17:56:55 UTC 2006

Modified Files:
        pkg_install/include/pkg: db.h pkg.h plist.h
        pkg_install/lib: pkg.c pkg.h pkg_db.c pkg_deyaml.c pkg_tarup.c
            pkg_yaml.c plist.c plist_utils.c
        pkg_install/src/pkg_add: pkg_add.c
        pkg_install/src/pkg_create: pkg_create.c
        pkg_install/src/pkg_delete: pkg_delete.c
        pkg_install/src/pkg_hash: pkg_hash.c
        pkg_install/src/pkg_parse: pkg_parse.c

Log Message:
First step to modular error handling. Introduce two function arguments
for pkg_create and similiar functions, pkg_fatal_error and
pkg_soft_error. The former is called for unrecoverable errors
(as which allocation errors will count now), the latter for
recoverable problems. Change most boolean functions to return
trinary states: PKG_OK means that the operation was successful
(or should be considered as such), PKG_CANCEL means that it failed
and further processing should not be attempted. PKG_IGNORE will
continue the processing and if any step did return that instead of
PKG_OK, the result is PKG_IGNORE.


To generate a diff of this commit:
cvs -z3 rdiff -u -r1.1 -r1.2 pkg_install/src/pkg_delete/pkg_delete.c
cvs -z3 rdiff -u -r1.11 -r1.12 pkg_install/src/pkg_parse/pkg_parse.c
cvs -z3 rdiff -u -r1.12 -r1.13 pkg_install/lib/pkg.c
cvs -z3 rdiff -u -r1.13 -r1.14 pkg_install/include/pkg/pkg.h \
    pkg_install/lib/pkg_deyaml.c pkg_install/lib/pkg_yaml.c
cvs -z3 rdiff -u -r1.3 -r1.4 pkg_install/include/pkg/plist.h \
    pkg_install/src/pkg_create/pkg_create.c
cvs -z3 rdiff -u -r1.4 -r1.5 pkg_install/include/pkg/db.h \
    pkg_install/lib/pkg_tarup.c pkg_install/lib/plist_utils.c
cvs -z3 rdiff -u -r1.5 -r1.6 pkg_install/lib/pkg_db.c \
    pkg_install/src/pkg_add/pkg_add.c
cvs -z3 rdiff -u -r1.7 -r1.8 pkg_install/lib/pkg.h
cvs -z3 rdiff -u -r1.8 -r1.9 pkg_install/lib/plist.c \
    pkg_install/src/pkg_hash/pkg_hash.c

To view a diff of this commit:
http://netbsd-soc.cvs.sourceforge.net/netbsd-soc/pkg_install/src/pkg_delete/pkg_delete.c?r1=1.1&r2=1.2
http://netbsd-soc.cvs.sourceforge.net/netbsd-soc/pkg_install/src/pkg_parse/pkg_parse.c?r1=1.11&r2=1.12
http://netbsd-soc.cvs.sourceforge.net/netbsd-soc/pkg_install/lib/pkg.c?r1=1.12&r2=1.13
http://netbsd-soc.cvs.sourceforge.net/netbsd-soc/pkg_install/include/pkg/pkg.h?r1=1.13&r2=1.14
http://netbsd-soc.cvs.sourceforge.net/netbsd-soc/pkg_install/lib/pkg_deyaml.c?r1=1.13&r2=1.14
http://netbsd-soc.cvs.sourceforge.net/netbsd-soc/pkg_install/lib/pkg_yaml.c?r1=1.13&r2=1.14
http://netbsd-soc.cvs.sourceforge.net/netbsd-soc/pkg_install/include/pkg/plist.h?r1=1.3&r2=1.4
http://netbsd-soc.cvs.sourceforge.net/netbsd-soc/pkg_install/src/pkg_create/pkg_create.c?r1=1.3&r2=1.4
http://netbsd-soc.cvs.sourceforge.net/netbsd-soc/pkg_install/include/pkg/db.h?r1=1.4&r2=1.5
http://netbsd-soc.cvs.sourceforge.net/netbsd-soc/pkg_install/lib/pkg_tarup.c?r1=1.4&r2=1.5
http://netbsd-soc.cvs.sourceforge.net/netbsd-soc/pkg_install/lib/plist_utils.c?r1=1.4&r2=1.5
http://netbsd-soc.cvs.sourceforge.net/netbsd-soc/pkg_install/lib/pkg_db.c?r1=1.5&r2=1.6
http://netbsd-soc.cvs.sourceforge.net/netbsd-soc/pkg_install/src/pkg_add/pkg_add.c?r1=1.5&r2=1.6
http://netbsd-soc.cvs.sourceforge.net/netbsd-soc/pkg_install/lib/pkg.h?r1=1.7&r2=1.8
http://netbsd-soc.cvs.sourceforge.net/netbsd-soc/pkg_install/lib/plist.c?r1=1.8&r2=1.9
http://netbsd-soc.cvs.sourceforge.net/netbsd-soc/pkg_install/src/pkg_hash/pkg_hash.c?r1=1.8&r2=1.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NetBSD-SoC-cvs mailing list
NetBSD-SoC-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netbsd-soc-cvs

Reply via email to