summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD
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-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-04fix keep_old_filesMarc Espie
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-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-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-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
2007-05-31fix the saving of partial installs in case destdir is used.Marc Espie
2007-05-31a few cosmetic changes, move realname over to PackingElement to beMarc Espie
able to use it in other cases.
2007-05-30simplify script handling a bit (they're going to disappear probably anyways).Marc Espie
Remove two passes visitors, we don't use them.
2007-05-30simplify really_add to use real visitors for extraction and installation.Marc Espie
Just do one single try {} catchall {} per-method, as this is enough. New methods: extract_and_progress, install_and_progress, that catch interrupts (die) deal with fake, and handle the progress meter. One single method: mark_progress, can be used for extraction, installation and deletion.
2007-05-30avoid setting partial directly when we can, use inheritance instead.Marc Espie
2007-05-30simplify the way partial installations get recorded: store elementsMarc Espie
already installed in a hash, and do a shallow copy of the list when necessary, using make_copy. This removes a lot of action-at-a-distance in packing-list elements.
2007-05-30don't bother not copying the pkgname, we're going to overwrite it anyways.Marc Espie
2007-05-30new functionality: copy elements of packing-lists to a new plist if theyMarc Espie
are registered in a hash. This will be used to create borked packages in a much simpler way. Also, set_pkgname, so that I don't have to remember whether this packing-list already has a name. Useful when copying stuff over.