summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
AgeCommit message (Collapse)Author
2007-05-31don't bother registering files that have tempnames. The real files don't/noMarc Espie
longer exist. The stuff has been removed already anyways, this just makes spurious warnings while deleting partial packages. Also use auto-vivification, like we do everywhere else.
2007-05-31oops, move realname up so that ::Sample sees it too.Marc Espie
remove last traces of MODULEs.
2007-05-31kill REQ script directly. I'm pretty sure it doesn't quite work anyways.Marc Espie
Deprecate INSTALL and DEINSTALL, write out warnings in pkg_create. Clean up some more old cruft
2007-05-31a few cosmetic changes, move realname over to PackingElement to beMarc Espie
able to use it in other cases.
2007-05-30simplify the way partial installations get recorded: store elementsMarc Espie
already installed in a hash, and do a shallow copy of the list when necessary, using make_copy. This removes a lot of action-at-a-distance in packing-list elements.
2007-05-30new functionality: copy elements of packing-lists to a new plist if theyMarc Espie
are registered in a hash. This will be used to create borked packages in a much simpler way. Also, set_pkgname, so that I don't have to remember whether this packing-list already has a name. Useful when copying stuff over.
2007-05-29don't bypass add_object to create special files, otherwise infodir won'tMarc Espie
get defined. Simplify and clean-up register_installation: everything is in the packing-list so don't pass other arguments. Do not copy arbitrary info_names objects, but use a copy_info visitor which copies exactly what files are around. Use the stored infodir to locate DISPLAY and INSTALL files.
2007-05-29a few more details so that infodirs become useful.Marc Espie
2007-05-29clean-up SpecialFile a bit: make sure the name passed during creation isMarc Espie
totally irrelevant. Add a new property to packing-lists: infodir, and use it to compute fullnames for special files. Once this is properly synchronized, we can tie infodir to packing-lists, and remove it from the state...
2007-05-29downgrade `can't find +DISPLAY' to a warning until I figure things out.Marc Espie
2007-05-24catch up and rethrow Packing-List read issues with the filename whenMarc Espie
available.
2007-05-22mark `digitalsignature' as a known keyword, which helps me.Marc Espie
Use autovivification on stuff to remove.
2007-05-20make the package tools more aware of manpages: handle names correctly,Marc Espie
and figure out how to process manpages.
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-17make sure that mkfontdir and friends get their argumentsMarc Espie
2007-05-14put Search objects into their own file, finallyMarc Espie
2007-05-14put search objects into a search class.Marc Espie
2007-05-14name tweaks: match -> match_list, match_repo -> matchMarc Espie
2007-05-13normalize quoting in extra info.Marc Espie
2007-05-12lift PkgSpec creation up into PackingElement::Dependency.Marc Espie
2007-05-12use PkgSpec objects most of the timeMarc Espie
2007-05-07split common code into run_if_existsMarc Espie
2007-05-07remove non sensical eval {}Marc Espie
2007-05-02replace general @args -> $args unless strictly needed.Marc Espie
remove ($) prototypes which are more confusing than anything else.
2007-05-02replace abstract Factory name with a more sensible create name.Marc Espie
Call it OO, so that we can specialize it if we ever need it. Be more explicit about parameters.
2007-05-02$o->method() becomes $o->methodMarc Espie
2007-05-02add code to keep obsolete constructs around. This allows pkg_info toMarc Espie
print them sensibly.
2007-05-01simplify signature computation slightlyMarc Espie
2007-05-01unique objects probably use their class name as category.Marc Espie
2007-05-01kill old constructs that have been deprecated since 2004.Marc Espie
2007-05-01move the old elements into PackingElements, since the code is nowMarc Espie
much shorter.
2007-05-01allows us to register anything, and not just a class, with the factory.Marc Espie
2007-05-01define keyword() first, and allow register_with_factory() to reuse itMarc Espie
by default.
2007-05-01rename setKeyword to register_with_factoryMarc Espie
2007-04-30add most things concerning @ignore, since we now have ways nicer to doMarc Espie
things. We still recognize @ignore in packing-lists for now, but we don't handle it. Not that register-plist has smart enough comparison functions that it doesn't care about @ignore at all...
2007-04-29make packing-lists more regular by including the CONTENTS. AvoidMarc Espie
`recursion' by not writing it out. also remove PackingList::write, since it's a simple visitor.
2007-04-15update copyright years, standardize licence.Marc Espie
reword the introduction to the stuff originally from FreeBSD to clarify slightly.
2007-04-15do not rely on side-effects in there.Marc Espie
2006-12-16ltlib marker for libtool convenience library.Marc Espie
Long-term, we want to be able to build stuff without installing dependencies `for real', and pkgconfig and libtool files keep getting in the way, so pkg_* will have to take control, sooner or later...
2006-12-02allows us to mark *.pc files as PkgConfig.Marc Espie
This will be useful for some `normalization' work (remove ports directory, and replace /usr/local with DEPBASE or some such, so that building without installation works).
2006-11-17don't return undef, use plain return.Marc Espie
(return undef is only false in a scalar context) found my perlcritic, one of the few issues I agree with...
2006-03-19Partial revert of previous changes, nasty regexps not greedy the way they ↵Marc Espie
should. Broke md5.
2006-03-17un-special case old constructs: make them inherit from the same class,Marc Espie
and remove any special code from Factory. As it's simpler remove local variables.
2006-03-05avoid running mkfontdir/fc-cache if they don't exist.Marc Espie
2006-02-07minor independent tweaks:Marc Espie
- make Newuser and Newgroup subclasses of Newauth, so that code can be shared. - add property type() for these, that expands to user/group - add property to SpecialFile() that says whether this is executed on add/delete, so that we can check for noexec fs and error out early on these.
2005-10-19mark links being extracted with `zap', so that they do not get recordedMarc Espie
into partial plists until they've gone through an actual install. Prevents partial replacements from destroying genuine links in packages when they get uninstalled.
2005-09-04* New -i interactive option, that can ask obnoxious questions.Marc Espie
* move the signature code to a packing-list method, prepend the pkgname. * depend on distant listings, cache these systematically. * cut the PKG_PATH at :/ systematically, much simpler than parsing URLs. People should get used to trailing /s. * let pkg_add -u actually run the update. * check for signature in more places, for instance, let pkg_add installed_stuff be a void operation. * grab enough stuff during updates to check signatures, so that pkg_add -u can report updates that are not needed right away, instead of waiting for the more confusing `trying to update' * beginning of @module support. * @pkgpath support, including updates. * systematically expand stems when applicable. * use visitors systematically in pkg_info. * pkg_info -S reports signature. * remove hardcoding of categories in PackingList, so that future modules will be able to expand them. * add @updateset and @incompatibility keywords.
2005-08-14no reason not to record special files sizes along with md5.Marc Espie
2005-06-21move Arch->check() up to Packingelement, so that it can be called anywhere,Marc Espie
not only while adding packages. Add FatOnly filter, which will be used to get information from packing-lists to select the correct packing-list from a fat package (e.g., @arch and @name).
2004-12-16renamed borked_installation from borked.n to partial-<pkgname> ...Marc Espie
partial-<pkgname>.n if needed. Make borked_installation take a message, to show installation/deinstallation issues correctly. Fix handling of ^C: this may lead some system calls to return early, thus registering as errors: so always mark the last file as done, so that borked installation will register it correctly. Kill packing-list cache for anything but depends: we've got a global cache of libraries now (use it in pkg_add). Make almost everyone look at $main::not, so that we can call register_installation to_installation RequirementList->add/delete safely. Simplify $not logic accordingly, do thing much more closely to what would happen without -n. This should allow pkg_add/pkg_delete -n to handle most nasty cases correctly now, since all the relevant information is kept internally in a compact format: - register of shared libraries - global register of conflicts - cache of depends.