summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Dependencies.pm
AgeCommit message (Collapse)Author
2010-08-07need to check that kept packages are still okay.Marc Espie
fixes: sudo pkg_add -r ghostscript-8.63p13-no_x11.tgz quirks-1.17: 1/1 ghostscript-8.63p13->ghostscript-8.63p13-no_x11 forward dependencies: | Dependency of libspectre-0.2.6 on ghostscript-*-!no_x11 doesn't match Merging libspectre-0.2.6->libspectre-0.2.6 (1/3) [libspectre-0.2.6]ghostscript-8.63p13->ghostscript-8.63p13-no_x11: 3/3 Read shared items: ok
2010-06-30allow say and errsay to work without parameters, as it's ways common.Marc Espie
create verbose_system up in state, because it makes sense without verbose.
2010-06-30whitespace cleanupMarc Espie
2010-06-30extra parameter to UpdateSet: use the factory to create extra object.Marc Espie
don't create updatesets directly, go through AddDelete::State. Get all Locator/Repo access through state.
2010-06-09ui changes: go thru a state object for most printoutsMarc Espie
2010-06-05Move ask_list() method to $state object like it's done for confirm(), soLandry Breuil
that it can be overriden. Change callers accordingly. ok espie@
2010-06-04move code around, so that commands can be used as modules.Marc Espie
pkg becomes the start hub, which does nothing except require the correct module. Saner code wrt Add/Delete, and more sharing.
2010-05-10whitespace fixesMarc Espie
2010-04-10finding dep in old names like this actually means we are replacing withMarc Espie
stuff that won't match, so mark it for later.
2010-04-10avoid some loops.Marc Espie
2010-03-06match_locations doesn't work on invalid specs, so don't go thereMarc Espie
2010-01-24use libspecs, report problem will be terser for now.Marc Espie
2010-01-24use libspecs through Dependencies.Marc Espie
2010-01-05tweak outputMarc Espie
2010-01-04betterMarc Espie
2010-01-01(C) of affected filesMarc Espie
2010-01-01store repository paths in sets and propagate them.Marc Espie
This fixes pkg_add /some/path/package which will now find dependencies in the same path again.
2009-12-31stupid, stupid, stupidMarc Espie
2009-12-31need to tweak from to_update to self, as this kind of thing happens allMarc Espie
the time.
2009-12-31more/better cache for bad cases, and trap self after merge.Marc Espie
2009-12-30... and this should fix todd's case, that of not finding anything andMarc Espie
resorting to default...
2009-12-30also track stuff I couldn't install, and use it for negative cache lookups.Marc Espie
fix some looping if stuff can't install for whatever reason.
2009-12-30prettyMarc Espie
2009-12-29a few more tweaks:Marc Espie
- allow for merged updates if we want them - deplist becomes a hash, maybe useful for big sets - simplify loop checking. We don't actually care whether we find any. - be more aggressive in keeping cached stuff, create solver or conflict_cache if need be.
2009-12-29the way Tracker works, installed packages are always marked uptodate as well,Marc Espie
so remove some unneeded checks from solver's perspective.
2009-12-29for now, show cache statistic if -F stat_cache (still in need of improvements)Marc Espie
2009-12-29rework dependency solving around cached items, so that redoing the sameMarc Espie
lookup will be faster
2009-12-29prepare to cache conflicts in sets: object to do so, code to merge conflictsMarc Espie
and solver, actual auto-gen of conflict cache and solver.
2009-12-29improved check for loops:Marc Espie
- detect as many loops as we can - don't merge sets twice
2009-12-29prepare for smarter sets, with cache infoMarc Espie
2009-12-28kill old dependency adjusterMarc Espie
2009-12-28nitsMarc Espie
2009-12-27check for loops and merge sets, in case we end up with real funky depends.Marc Espie
also, reset package->{before} before solving depends, since we may solve them several times.
2009-12-26qualify (Direct Dependencies)Marc Espie
2009-12-20change verbosity handling: be silent by default, turn on the first level if -v.Marc Espie
Add more levels, specifically, lots of info regarding individual files only visible if -vvvvv. Make -n display the same stuff as normal (need -n -v to display more stuff). Introduce -s, "size-only", turns on -n and does skip any extraction. Sprinkle handlers for SIG_INFO, not really nice yet. Note that -n is non functional for complex updates, because of caching issues I have to fix.
2009-12-13simplify set printingMarc Espie
2009-12-11record internal updateset dependencies for new packages, and respect themMarc Espie
while installing (need doing something similar for old packages)
2009-12-07simplify tracker a bit now we know what we're doing.Marc Espie
kill code that never got used
2009-12-05since we don't redisplay missing libraries message, tell why we can't installMarc Espie
in general terms...
2009-12-04create new updatesets when neededMarc Espie
2009-12-04simpler unified lookup for libs inside set/installed packages.Marc Espie
2009-12-03zap useless debug codeMarc Espie
2009-12-03register plists from newer elements, in case they're useful.Marc Espie
2009-12-02fix some inter-dependencies case:Marc Espie
- when we merge updatesets, invalidate the solver (there isn't any, usually). - look inside set for check_depends. - do register_dependencies after committing all plists to cache.
2009-11-29set things up for updates on the fly. In particular, we may have to lookMarc Espie
into "to_update" stuff...
2009-11-29show old->new as everywhere else in sets.Marc Espie
micro-optimisation: if old pkgname is the same as new pkgname, we just need to build the RequiredBy file, no need to adjust Requiring...
2009-11-29clean up conflict handling and dependency adjustement: build listMarc Espie
of conflict globally, add it as old handles, and then use it everywhere.
2009-11-29have SharedLibs use state to print error messages.Marc Espie
2009-11-28rework display of missing libs some more: first show the libraries, thenMarc Espie
the dependency tree.
2009-11-11don't use Warn if we've got a $state, get through errprint/errsay.Marc Espie
Also: reset lastdisplay on clear, and don't clear twice.