summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PkgAdd.pm
AgeCommit message (Collapse)Author
2014-06-16fix bug introduced by work-around: sets with nothing to do must be markedMarc Espie
uptodate as well. Restores ntogo to working order
2014-06-12display full url if we can for UNSIGNED PACKAGES.Marc Espie
unconfuse mikeb@ :)
2014-05-05work-around the same location being reinstalled thru a different pathMarc Espie
later... no need to do anything on sets consisting purely of "kept" handles This is not fully satisfying, I expect I need to tie some "done already" to locations as we do with sets, so that we can wipe update_info properly and be done once and for all... Issue found by stsp@ while trying to use FETCH_PACKAGES, which is still not 100% in good shape with this.
2014-03-18remove $_ usage that warns under perl 5.18Marc Espie
2014-02-13this one is non obvious enough it deserves a commentMarc Espie
2014-02-13still need the plists for kept handles... because of OldLibs.Marc Espie
Problem noticed by henning@
2014-02-11s/anyways/anyway/, ok espie@Stuart Henderson
2014-02-08don't allow unsigned packages by default.Marc Espie
as kettenis@ says "test it now", always possible to revert if we don't want it for the release.
2014-02-04sort list of stuff we can't update for user display (otherwise, it's a listMarc Espie
of keys, so it isn't in any particularly interesting order)
2014-02-04check for errors before dependencies, anyways.Marc Espie
split the part for arch, since it requires full plists. avoid creating dummy locations for handles in errors.
2014-02-03remove extra cache copy in memory...Marc Espie
to be revisited, the setting of info dir so late is slightly broken and will reopen packages more times than needed.
2014-02-03don't keep tied information around !Marc Espie
2014-02-02simplify how "kept" packages are handled. First, we never need theirMarc Espie
full plist, just their update_info. Also, the routine for move_kept is pretty much always the same, so fold it. Finally, delay full plists in create_old.
2014-02-02now that things are clean enough, we just need to figure out kept packagesMarc Espie
before we solve depends. Avoids keeping full packing-lists all along the dependency chain...
2014-02-02make sure kept handles are complete... not really optimized so far, but willMarc Espie
fix issues seen by nigel@
2014-02-01sort out the code to figuring out kept packages.Marc Espie
Fix a (formerly) silent bug: kept packages *must* be completed somewhere. (older solve_depends would create dummy plists, new one errors out on them!)
2014-02-01handling of critical section was wrong. Interrupting an update once we'reMarc Espie
"committed" is a bad idea. Make it possible by ^C^C still, but try to get out only when the db is in a safe state.
2014-02-01use conflict_list directly from handle.Marc Espie
(only user left of plist->conflict_list is PkgCfl::register thru OldLibs stub_list)
2014-01-31minor fix: don't go to cache if genuine installMarc Espie
2014-01-30minor bug-fix, make sure partial is handled properly.Marc Espie
also use delete instead of undef so that they entry vanishes...
2014-01-23more sophisticated warning: builds with empty SIGNING_PARAMETERSMarc Espie
run with -Dunsigned, so they shouldn't show UNSIGNED PACKAGES while handling dependencies. *but* if we install a mix of signed and unsigned packages, ALWAYS show the line.
2014-01-17do check_digest per plist.Marc Espie
show UNSIGNED packages unconditionally.
2014-01-11simplify code: always extract, then install, so that initial installationsMarc Espie
and updates are more similar.
2014-01-09bump copyright to 2014Marc Espie
2014-01-04oops, it's global to the set, no need to do it several timesMarc Espie
2014-01-02zap PKG_PREFIX (undocumented and unused, now)Marc Espie
okay landry@
2013-12-31... and rename this tooMarc Espie
2013-12-25move the choice of signature type for checking into one single placeMarc Espie
2013-12-25a bit more scaffolding for running quirks. In particular, once quirksMarc Espie
have been loaded, complain loudly if something doesn't work. (and complain when quirks don't load in !verbose mode)
2013-12-23simpler logic: if one package is signed, check all digestsMarc Espie
2013-12-08also cover initial installations (which means we do try to installMarc Espie
quirks even for initial installations)
2013-12-08make use of the new "quirks" interfaceMarc Espie
2012-11-06work-around python compile issue: don't tie python files for now, soMarc Espie
that timestamps don't trigger recompile.
2012-04-28zap blank spacesMarc Espie
2011-08-26zap fatpackages. nobody actually uses them.Marc Espie
accordingly, locations do not need to track architecture.
2011-08-23zap old INSTALL/DEINSTALL stuff, it's been deprecated for 3 years, and removedMarc Espie
from pkg_create for over a year.
2011-08-17pkg_add and pkg_delete will now syslog activity by default.Marc Espie
2011-07-23avoid weird warnings in case we run into a strange package.Marc Espie
2011-07-17unify the main loop some more: add and delete do more or less theMarc Espie
same processing. start making process_set similar as well
2011-07-14move deptree_header into AddDelete, use it in pkg_delete.Marc Espie
Now, pkg_delete will display things a lot like pkg_add, spelling out what reverse dependencies trigger the deletion of a given package at that point in the list. by popular demand.
2011-07-13share codeMarc Espie
2011-07-13create DeleteSet as a specialized version of UpdateSets that printMarc Espie
differently, specialize the states a wee little bit.
2011-07-13fix a nasty bug: hints are evaluated lazily, so if a package is mentionedMarc Espie
on the command line, it's possible it won't be marked as user_tagged early enough. So, when we encounter it, the package is already installed, it will be moved to kept in the set... and we need to tag it anyways
2011-07-12move option -a up into common add/delete code, in preparation for pkg_deleteMarc Espie
change.
2011-06-27make things slightly more readableMarc Espie
2011-06-20in an UpdateSet, match new files with old files based on their sha256.Marc Espie
avoid extracting again identical files, leading to less file system churn. put in a few failsafes (size check) for people with fubar'd file systems (hey oga@). The more often you update, the more you gain. Over 6 months, about one out of five files doesn't change. apparently, improves things a lot on slow fs, as said landry@ and sthen@. tested by quite a few people.
2011-01-03those all need newlinesMarc Espie
2010-12-29more stuff that uses print directly diesMarc Espie
2010-12-24pass state around.Marc Espie
2010-12-24handle failures from ports tree with more care.Marc Espie
this does avoid infinite loops in case of wrong plists. necessary since print-plist-with-depends CAN fail...