summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
AgeCommit message (Collapse)Author
2010-07-02use state to print error messagesMarc Espie
2010-07-02use state to print out all error messagesMarc Espie
2010-07-02fix params so that state is state and not PackageLocator...Marc Espie
2010-07-02pass (and save) state around in Repository-related stuff.Marc Espie
2010-07-01remove the try/catch in debug mode, so that we get the errors directly...Marc Espie
2010-06-30use newer codeMarc Espie
2010-06-30handle GrabPlist as wellMarc Espie
2010-06-30modernize pkg_merge, avoid warning for link sizes.Marc Espie
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-30access locator through new APIMarc Espie
2010-06-30pass state along to find_by_spec, clean up error messages.Marc Espie
Simplify PkgLocator/PkgRepo access with new API
2010-06-30simple use of new state->repo APIMarc Espie
2010-06-30pass state along when signing packages, uses repo and fatal directlyMarc Espie
2010-06-30UpdateSet will need access to state->repo, so it's better to have allMarc Espie
updateset creations operations go through state as well.
2010-06-30create RepositoryFactory object that can be used as a single access pointMarc Espie
for all PackageRepository-related operations (so that tweaking parameters and initialization happens in one single location)
2010-06-30slightly better error handlingMarc Espie
2010-06-30differentiate more between @exec and @unexecMarc Espie
2010-06-30kill extra spacesMarc Espie
2010-06-30styleMarc Espie
2010-06-25minor cleanupsMarc Espie
2010-06-25fix bad opt('l') printing.Marc Espie
don't create names list to recreate handles list
2010-06-25remove last local vars.Marc Espie
2010-06-25simplify message printing a bitMarc Espie
2010-06-25document ::State a bitMarc Espie
2010-06-25clean-up options handling some moreMarc Espie
2010-06-25new styleMarc Espie
2010-06-25move handle_options in state, as should be.Marc Espie
fix a buglet in vsystem
2010-06-25do options the other way so that we provide defaults that can be overriddenMarc Espie
locally
2010-06-25use new state (so no need to parse some options).Marc Espie
this requires exporter for now.
2010-06-25use locator object.Marc Espie
rework options into state
2010-06-25move common options (-D/-v) handling code upto State.Marc Espie
rework handle_options to be code in state proper, so that I can remove a class that's actually useless. reuse the export code from getopt so that legacy code still get opt_x working.
2010-06-25allow creation of a unique PackageLocator object, that stores state,Marc Espie
and thus can eventually be used to create repositories, print messages, etc.
2010-06-25fix "deduplicate" code.Marc Espie
allow prepend as well as add
2010-06-25sha25 -> sha256 as noticed by Nigel TaylorMarc Espie
2010-06-24Include files annotated @bin in the database produced by pkg_mklocatedb;Stuart Henderson
reported by Antti Harri who gave a very good tip helping analysis, thanks! ok espie@
2010-06-20display bad symlinks by destinationMarc Espie
2010-06-19let build libspec match as they should.Marc Espie
namely, if a shared lib exists, then a static library should not match if the version number is not okay. problem noticed by sthen@, okay sthen@
2010-06-18oopsMarc Espie
2010-06-18document newer module and new framework (somewhat...)Marc Espie
document more stuff from Vstat.
2010-06-18whitespaceMarc Espie
2010-06-18reuse for_listMarc Espie
2010-06-18buglet: Log object needs a printer to run f().Marc Espie
introduce for_list() iterator in ProgressMeter and use it
2010-06-15handle lost+foundMarc Espie
2010-06-15it's okay for partial- packages to be a bit weird...Marc Espie
2010-06-15typo2Marc Espie
2010-06-15with more primitive primitives, we don't need to override so much...Marc Espie
2010-06-15typoMarc Espie
2010-06-15more printing changes.Marc Espie
move log operations into their own file, since they're used outside of pkg_add/pkg_delete by pkg_check. move all system stuff to State, so that printing can be localized/controlled. Create primitives _print, _errprint, _fatal for overriding output, without localization. Accordingly, move a lot of code out of Error. We should also move Unlink and Copy eventually.