OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
CVS: cvs.openbsd.org: src

From: Marc Espie (espiecvs.openbsd.org)
Date: Sat Mar 04 2006 - 05:31:19 CST


CVSROOT: /cvs
Module name: src
Changes by: espiecvs.openbsd.org 2006/03/04 04:31:19

Modified files:
        usr.sbin/pkg_add: Makefile pkg_add
        usr.sbin/pkg_add/OpenBSD: Interactive.pm PackageName.pm
                                  Update.pm
Added files:
        usr.sbin/pkg_add/OpenBSD: Replace.pm

Log message:
reorganize code a little bit: Update.pm becomes Replace.pm (since it matches
the -r option), and the find_update code moves to Update.pm, so that it doesn't
get parsed if -u is not used.

Also make the has_new_sig and uses_old_libs local methods of PackingList,
as it is their natural API.

Reorg a few more routines so that they can be found by pkg_add and by
Update.pm.

May need to split off more stuff to avoid parsing everything...