From owner-freebsd-libh Mon Jan 21 13:44:58 2002 Delivered-To: freebsd-libh@freebsd.org Received: from usw4.freebsd.org (usw4.freebsd.org [209.180.6.228]) by hub.freebsd.org (Postfix) with ESMTP id 4A40937B404 for ; Mon, 21 Jan 2002 13:44:54 -0800 (PST) Received: (from antoine@localhost) by usw4.freebsd.org (8.11.6/8.11.6) id g0LLiro34569 for libh@FreeBSD.org; Mon, 21 Jan 2002 15:44:53 -0600 (CST) (envelope-from antoine) Message-Id: <200201212144.g0LLiro34569@usw4.freebsd.org> From: Antoine Beaupré Date: Mon, 21 Jan 2002 15:44:53 -0600 (CST) To: libh@FreeBSD.org Subject: cvs commit: libh/include Configuration.hh libh/include/sysinstall Database.hh libh/lib/common Configuration.cc Configuration.cd.cc libh/lib/sysinstall Database.cc Database.cd.cc libh/lib/tcl Makefile.inc1 Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG antoine 2002/01/21 15:44:53 CST Modified files: include Configuration.hh include/sysinstall Database.hh lib/common Configuration.cc Configuration.cd.cc lib/sysinstall Database.cc Database.cd.cc lib/tcl Makefile.inc1 Log: Make a configurable default for the package database file The default is /var/db/npkg. It is get-or-settable with Configuration::dbPath(). Database(), Database::open(), Database::create() can now be called without dbPath arguments, in which case they will use the path set in Configuration::instance(). I had to hack Configuration into the sysinstall build system in order to make it compile, but I haven't seen a problem with that yet. Revision Changes Path 1.5 +5 -1 libh/include/Configuration.hh 1.4 +5 -5 libh/include/sysinstall/Database.hh 1.7 +3 -3 libh/lib/common/Configuration.cc 1.6 +10 -1 libh/lib/common/Configuration.cd.cc 1.4 +22 -4 libh/lib/sysinstall/Database.cc 1.6 +7 -4 libh/lib/sysinstall/Database.cd.cc 1.24 +4 -4 libh/lib/tcl/Makefile.inc1 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message