summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
AgeCommit message (Collapse)Author
2009-12-13force gzip to write package even if things don't compress.Marc Espie
2009-12-12update will ask about conflicts, so we need that in updateinfo...Marc Espie
2009-12-12autovivifiedMarc Espie
2009-12-12fix the fam->libgamin issue. Look for update candidates in self beforeMarc Espie
asking the repository. This solves this kind of conflicts. also, register packages we keep, this makes for simpler scenarios (todo: split updateset into further categories)
2009-12-12have pkg_add recheck there are no internal conflicts in an updateset.Marc Espie
provides a different failure for the fam/gamin update (better one actually, since we go further...)
2009-12-12remove *everything* from to_update, including hintsMarc Espie
2009-12-12tie conflict lists to packing lists and use themMarc Espie
2009-12-12do the same dance with older packages: build before list, and use it whenMarc Espie
deleting.
2009-12-11record internal updateset dependencies for new packages, and respect themMarc Espie
while installing (need doing something similar for old packages)
2009-12-07don't use $set->print, consistent messages.Marc Espie
2009-12-07simplify tracker a bit now we know what we're doing.Marc Espie
kill code that never got used
2009-12-06-U before -u;Jason McIntyre
2009-12-05a bit more documentation, including revisit of OpenBSD::Intro to reflectMarc Espie
the current state of things.
2009-12-05use eval {} everywhere around quirks.Marc Espie
also, remove quirks from the list of packages to update, since it deserves special treatment...
2009-12-05since we don't redisplay missing libraries message, tell why we can't installMarc Espie
in general terms...
2009-12-05quirks existsMarc Espie
2009-12-05avoid progressmeter warningMarc Espie
2009-12-05better quirks interface: pass the search object that was built, so we canMarc Espie
adjust it (eventually, pass the whole list ?)
2009-12-05change the internal representation of Search::Stem to allow the additionMarc Espie
of supplementary stems (useful for quirks)
2009-12-05oopsMarc Espie
2009-12-05cosmeticMarc Espie
2009-12-05fix quirks object construction. Simplify its handling: just install/updateMarc Espie
it first, and try to build the Quirks object. Make ourselves resilient to errors in there. For removing sets with only older packages, we have to call complete_old even if there are no conflicts at all !
2009-12-05make quirks silent. Track # of updates found, instead of newer size, sinceMarc Espie
we may end up updating sets with newer == 0
2009-12-05fix off-by-one, noticed by frantisek holopMarc Espie
2009-12-04create new updatesets when neededMarc Espie
2009-12-04fix the case where you look to update one package: the dependencies of theMarc Espie
new package must first be updated too.
2009-12-04set-up for quirks, just don't do it yet.Marc Espie
2009-12-04simpler unified lookup for libs inside set/installed packages.Marc Espie
2009-12-04internal API: is_known, for pkgnames that are known by the tracker,Marc Espie
so that we decide whether to create new updatesets. (not efficient, but isolate from rest of code before Tracker refactor)
2009-12-03fix typos and blanksMarc 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-12-01document more or less what's going on now.Marc Espie
With updatesets, technical details are ways more complicated.
2009-12-01okay, this one needs tagging as wellMarc Espie
2009-12-01for every case we can't install stuff, we have to let the tracker now, andMarc Espie
close the set.
2009-11-30tweak the rules a bit: the search filter for "more recent than" ought toMarc Espie
notice it sees older stuff. Even if they get filtered later on, this would turn into a "no need to update". (in actual use, I probably will need to open those packages and look at the pkgpaths to make sure they are not valid candidates, and to compare full signatures... oh well)
2009-11-30better errors: have $set->cleanup mark set as finished.Marc Espie
in case there is an issue, register set as not updateable with tracker.
2009-11-30better: have can_install return 0/1 as definitive answer, and return "undef"Marc Espie
for try again later. Don't bother cleaning up set from can_install, since complete does it too.
2009-11-29some major changes have happenedMarc Espie
2009-11-29compute updates on the fly, instead of "at start"Marc Espie
2009-11-29set things up for updates on the fly. In particular, we may have to lookMarc Espie
into "to_update" stuff...
2009-11-29in the worst case, we find a new handle with the right pkgpath,Marc Espie
independently of the name...
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-29show missing libraries as "|detail" for the can't install message.Marc Espie
2009-11-29slightly simpler error handlingMarc Espie
2009-11-29have SharedLibs use state to print error messages.Marc Espie
2009-11-29handle more general conflicts:Marc Espie
- match old spec against any of the new packages in the set. - manage conflicts globally if several newer packages are there. - remove the limit of 5 conflicting packages, it's no longer really relevant.
2009-11-28oopsMarc Espie