summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
AgeCommit message (Collapse)Author
2007-06-06tweak split_libs slightly for further changes: make it return the oldMarc Espie
packing-list, and the new, instead of doing `in-place' edition of the plist contents.
2007-06-06recognize and handle https.Marc Espie
2007-06-06tweak how copies happen: rename make_copy into make_shallow_copy,Marc Espie
make_deep_copy. tweak keep_old_files so that we set the pkgname later, when it won't cause any error to have duplicates in there.
2007-06-06augment reporting of bad problems so that it works with system libs.Marc Espie
reverse bogus minor check as well
2007-06-05allow accessing all older values (make a semantic distinction), so thatMarc Espie
adjust_dependencies gets access to all. This fixes some bogus replacements.
2007-06-05reuse the compute_closure code.Marc Espie
2007-06-04zap extra paramMarc Espie
2007-06-04minor tweak, use one single print. Build character strings instead.Marc Espie
2007-06-04slight refactor to remove duplicate code.Marc Espie
2007-06-04convert the remaining regexps, so that $`, $', $& are completely dead.Marc Espie
Should shave a few % off time and space.
2007-06-04shorten message a bit, give it a chance to fit on one line.Marc Espie
2007-06-04a few missed $' / $`Marc Espie
2007-06-04more efficient regexps: anchor stuff at both ends, be more specific inMarc Espie
what matches. Get rid of $`, $', $&, which encur a performance penalty. (not yet done on PackageName and PkgSpec).
2007-06-04add -t to usage() and SYNOPSIS;Jason McIntyre
2007-06-04zap extra parameter that nothing uses.Marc Espie
2007-06-04error code: if we can't find a given libspec, we look through allMarc Espie
known registered libs, and tell the user why this library doesn't match. Example: Can't install kdelibs-3.5.7: lib not found lib/qt3/qt-mt.31.0 qt-mt.31.0: found partial match in /usr/local/lib/qt3: major=32, minor=0 (bad major) qt-mt.31.0: found partial match in /usr/local/lib: major=31, minor=0 (bad directory) (after altering qt to have @lib lib/qt3/libqt-mt.so.32.0)
2007-06-04avoid parsing libraries by hand.Marc Espie
Store shared libraries in a `better' format, which will also us to report issues more nicely.
2007-06-04stricter regexp for libraries.Marc Espie
Put the directory *last* as it can be empty, which breaks havoc with tests.
2007-06-04add a lib parsing routine to PackingElement::Lib so I don't have toMarc Espie
do the same thing again and again...
2007-06-04I am on drugs, I don't know where I found split can take strings asMarc Espie
arguments. Repair...
2007-06-04zap dead code: we no longer use DirRm.Marc Espie
stop recognizing @comment MD5: as special.
2007-06-04some minor systematic changes.Marc Espie
- mark all regexps I can with /o if they can be compiled once. - turn $o->method() into $o->method - remove unneeded prototypes - reduce split /re/ into split "string" where possible.
2007-06-04add -t flag to pkg_info to enable listing of the ``top level'' packages,Pierre-Yves Ritschard
i.e those who are not a dependency of another package. useful to show the packages you actually use. ok espie@
2007-06-04fix keep_old_filesMarc Espie
2007-06-02zap trailing whitespace;Jason McIntyre
2007-06-02remove elements of the solver that correspond to dependencies `in-transit'Marc Espie
since they're now recorded as true dependencies. (helps me think about future improvements)
2007-06-02show the font commands being run in very verbose state. After all, we showMarc Espie
ldconfig -R
2007-06-02move the check that dependencies are satisfied inside the solver objectMarc Espie
2007-06-02slight refactor, move wantlib dependencies handling inside the solver.Marc Espie
2007-06-02reorder codeMarc Espie
2007-06-02move most of the code that deals with dependencies in the solver objectMarc Espie
2007-06-02move the solver object up to the set level.Marc Espie
2007-06-02move dependency registration into its own function.Marc Espie
2007-06-02move the dependency handling into separate functions.Marc Espie
2007-06-02document how fragments work.Marc Espie
document a few `internal' keywords document some of the checks that pkg_create does during archive creation.
2007-06-01very small clean-up of dependencies list handling.Marc Espie
2007-06-01apply the same checks on extraction that are done during pkg_createMarc Espie
(modes and owners without annotation WILL be refused). Somewhat pedantic: skip archive entry during extraction of links/symlinks. Doesn't change a thing, except in the very rare case where a package would end with a link in the packing-list. Now we're able to detect a premature end of the tarball. (okay, it's an obscure bug, I haven't even met it for real. So what ?)
2007-06-01don't store stuff in the plist, use the handle which is there for that.Marc Espie
so loop directly over $set->older for replacements.
2007-06-01compute real list.Marc Espie
2007-06-01micro-optimizationsMarc Espie
2007-06-01refactor ProgressMeter code to create objects, put these into state.Marc Espie
Create a common state class for delete and add, put the progressmeter creation in there. neat effect: we don't have a progressmeter, we use a stub class instead and *never* pull the code in at all.
2007-06-01no need to require ProgressMeter twice.Marc Espie
2007-05-31look up for old libraries last, so that we do not get tied to old stuffMarc Espie
whenever possible.
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-31we cannot install a package without a solver, remove redundant test.Marc Espie
2007-05-31simplify the handling of shared libs: there's no need to register eachMarc Espie
package independently.
2007-05-31move set validation earlier (in fact, it probably doesn't belong inMarc Espie
really_add). move common delete_installed() code inside Delete.pm
2007-05-31don't bother registering files that have tempnames. The real files don't/noMarc Espie
longer exist. The stuff has been removed already anyways, this just makes spurious warnings while deleting partial packages. Also use auto-vivification, like we do everywhere else.
2007-05-31oops, move realname up so that ::Sample sees it too.Marc Espie
remove last traces of MODULEs.
2007-05-31kill REQ script directly. I'm pretty sure it doesn't quite work anyways.Marc Espie
Deprecate INSTALL and DEINSTALL, write out warnings in pkg_create. Clean up some more old cruft