summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
AgeCommit message (Collapse)Author
2007-06-06tweak how copies happen: rename make_copy into make_shallow_copy,Marc Espie
make_deep_copy. tweak keep_old_files so that we set the pkgname later, when it won't cause any error to have duplicates in there.
2007-06-04more efficient regexps: anchor stuff at both ends, be more specific inMarc Espie
what matches. Get rid of $`, $', $&, which encur a performance penalty. (not yet done on PackageName and PkgSpec).
2007-06-04stricter regexp for libraries.Marc Espie
Put the directory *last* as it can be empty, which breaks havoc with tests.
2007-06-04add a lib parsing routine to PackingElement::Lib so I don't have toMarc Espie
do the same thing again and again...
2007-06-04I am on drugs, I don't know where I found split can take strings asMarc Espie
arguments. Repair...
2007-06-04zap dead code: we no longer use DirRm.Marc Espie
stop recognizing @comment MD5: as special.
2007-06-04some minor systematic changes.Marc Espie
- mark all regexps I can with /o if they can be compiled once. - turn $o->method() into $o->method - remove unneeded prototypes - reduce split /re/ into split "string" where possible.
2007-06-02show the font commands being run in very verbose state. After all, we showMarc Espie
ldconfig -R
2007-06-01micro-optimizationsMarc Espie
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...