Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: basesrc



Module Name:    basesrc
Committed By:   hubertf
Date:           Sun Mar 19 17:24:29 UTC 2000

Modified Files:
        basesrc/usr.sbin/pkg_install/add: perform.c
        basesrc/usr.sbin/pkg_install/admin: main.c

Log Message:
 * in pkg_add, before the "install dependencies" loop, check ALL
   dependencies if they _can_ be installed. I.e. if a package wants
   version X installed, but version Y is already installed, pkg_adding
   that required pkg will blow up later (probably some pkg_add recursions
   down, given what we keep in the depends list). Now, it stopps right
   away:

        noon# pkg_add /usr/pkgsrc/packages/i386ELF/All/xdaemon-1.0.tgz
        pkg_add: pkg `xteddy-1.*' required, but `xteddy-2.0.1' found installed.
        Please resolve this conflict!

   The idea of this is from Thomas Klausner, further inputs from Alistair
   Crooks.

 * allow pkg names without versions given to "pkg_admin check"
 * Use sizeof() instead of hardcoding the buffers' size in some places


To generate a diff of this commit:
cvs rdiff -r1.45 -r1.46 basesrc/usr.sbin/pkg_install/add/perform.c
cvs rdiff -r1.11 -r1.12 basesrc/usr.sbin/pkg_install/admin/main.c

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




Home | Main Index | Thread Index | Old Index