summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
AgeCommit message (Collapse)Author
2007-05-23use autovivifyMarc Espie
2007-05-22remove duplicate -M entry from set_usage(); ok espieJason McIntyre
2007-05-22zap references to pkgdep. Packing-Lists no longer even record it, anyways.Marc Espie
2007-05-22cleanup shared state a bit earlier. Shouldn't change much, but may helpMarc Espie
ensuring we don't reload fontdirs twice with weird fontdirs case.
2007-05-22introduce a SharedItemsRecorder (put it into Vstat, since that's a fileMarc Espie
common to Add and Delete, for now). Use it to have common code that records items to remove / items remaining. Stash it into pkg_add/pkg_delete state, and abstract the cleaning up operation into the SharedItemsRecorder (so that pkg_add and pkg_delete no longer have to know about the internals of SharedItems at all).
2007-05-22mark `digitalsignature' as a known keyword, which helps me.Marc Espie
Use autovivification on stuff to remove.
2007-05-22remove -h from set_usage();Jason McIntyre
2007-05-22finish removing unused -h optionMarc Espie
2007-05-20make the package tools more aware of manpages: handle names correctly,Marc Espie
and figure out how to process manpages.
2007-05-20move deptree and installed into state objectMarc Espie
2007-05-20create specific `state' objects for pkg_add and pkg_delete, so that I canMarc Espie
write shortcuts for common behavior, and start hiding some details.
2007-05-20placeholders for UpdateSet, once we have it.Marc Espie
2007-05-20both pkg_add and pkg_delete use Vstat, make it explicit.Marc Espie
2007-05-20compute list of dependencies to adjust just-in-time.Marc Espie
This lets the pkg_add regress pass, finally.
2007-05-20libs_to_check ? actually, never use it...Marc Espie
2007-05-20remove extra forwarding method that is no longer neededMarc Espie
2007-05-20zap old depend code I missedMarc Espie
2007-05-19move the code that handles dependencies registration into DependenciesMarc Espie
2007-05-19and I forgot this oneMarc Espie
2007-05-19add match_locations/filter_locations methods to search stuff that returnsMarc Espie
full pkg locations instead of package names.
2007-05-19fix scp url parsing and printingMarc Espie
2007-05-19don't pass srcpath around, since we don't use it.Marc Espie
2007-05-18Add pkgpath hints to pkgspec. Make PackageRepository/Source functional:Marc Espie
if a pkgpath is hinted at, then we build that package, and we delegate to the corresponding File: repository. Some XXX: we need to unlock the database temporarily, as the build *requires* shared access to stuff that is going on (and possibly write access for installing subpackages, so this cannot work 100% yet). Still, this allows the transparent build of one single package, at least.
2007-05-18show the url for the package we're dealing with. Unconfuse installed vs.Marc Espie
uninstalled stuff.
2007-05-18also strip +CONTENTSMarc Espie
2007-05-18normalize installed namesMarc Espie
2007-05-18cut dependency code in smaller chunksMarc Espie
2007-05-18we don't need to walk the full dependency tree each time we don't findMarc Espie
a library. Instead, put the state of the closure computation in the solver object, and only proceed until we find the library. We just need an extra marker (known) to be aware of packages that may contain libraries, but have not been used for extra dependencies yet.
2007-05-17do not pass the urlscheme to the constructors, since they each haveMarc Espie
a known urlscheme. Recognize inst: and file: as specific schemes that refer to given repositories, for future extension.
2007-05-17new methods: repositories can create url. Rename PackageLocation->stringizeMarc Espie
to url, since that's what it does. Use the new methods to shorten code.
2007-05-17name each urlschemeMarc Espie
2007-05-17make sure that mkfontdir and friends get their argumentsMarc Espie
2007-05-17library lookup becomes a real methodMarc Espie
2007-05-17move the library lookup code into Solver, so that I can turn it intoMarc Espie
methods as well...
2007-05-17use solver object in all direct instances of solved_dependencies.Marc Espie
2007-05-17access solver internals in a clean way through dependencies, uses itMarc Espie
internally. store solver objects along with solved_dependencies. Eventually, all solved_dependencies requests will use solver objects instead.
2007-05-17make the solved dependencies more explicit, match them back to the specMarc Espie
they match.
2007-05-17tweak the solver object a bit, now that I have a clearer idea of whatMarc Espie
it's going to be used for.
2007-05-17handle normalization of flavors in PackageName objects.Marc Espie
2007-05-16oops, committed debug code, sorry.Marc Espie
2007-05-15allows for incomplete locations (without arch) and for repositories toMarc Espie
print PackageLocations (to be cleaned up later).
2007-05-15require the right code at the right location.Marc Espie
problem noticed by deanna@
2007-05-15make sure to give all special files to root/wheel, and strip them of writeMarc Espie
and suid bits.
2007-05-15do not copy pkgname, since we're going to erase it, and packing-listsMarc Espie
now detect duplicate stuff.
2007-05-15fix dependenciesMarc Espie
2007-05-14remove unneeded quotesMarc Espie
2007-05-14put the solver into its own class.Marc Espie
2007-05-14move verbose printing into a separate method.Marc Espie
2007-05-14use the solver object to split the code into smaller chunksMarc Espie
2007-05-14cosmetic tweakMarc Espie