summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
AgeCommit message (Collapse)Author
2010-01-05repairMarc Espie
2010-01-05use Auto::cacheMarc Espie
2010-01-01new option 'explicit-update', for firmwares (don't consider these in bulkMarc Espie
updates, only when user asks for them explicitly)
2009-12-30infrastructure for url elementsMarc Espie
2009-12-30actually cache architecture, as intendedMarc Espie
2009-12-20change verbosity handling: be silent by default, turn on the first level if -v.Marc Espie
Add more levels, specifically, lots of info regarding individual files only visible if -vvvvv. Make -n display the same stuff as normal (need -n -v to display more stuff). Introduce -s, "size-only", turns on -n and does skip any extraction. Sprinkle handlers for SIG_INFO, not really nice yet. Note that -n is non functional for complex updates, because of caching issues I have to fix.
2009-12-17be slightly more paranoid about shell stuff we run.Marc Espie
2009-11-11vsystem, system, unlink can mostly go through state, and do the ->clear partMarc Espie
as well.
2009-11-11remove redirector: if we want to run system AND log, just say soMarc Espie
2009-11-11don't use Warn if we've got a $state, get through errprint/errsay.Marc Espie
Also: reset lastdisplay on clear, and don't clear twice.
2009-11-11progressmeter puts STDOUT in autoflush if -t, so that it can display to it ↵Marc Espie
instead of piping a lot of stuff to STDERR. Go through state->print for most messages, so they will NOT do weird things with the progressmeter. Use a ->say shortcut which does the same thing that perl 5.10 say does...
2009-11-11remove forwarders, and provide a sensible API that says what's going onMarc Espie
(e.g., we're logging information for later).
2009-11-10bad espie: use strict/warnings consistently, and fix two nits and twoMarc Espie
actual errors !
2009-11-03add @option always-update.Marc Espie
a package tagged as 'always-update' will have its full packing-list, complete with checksums, as signatures, so it will always get updated, even when the version number doesn't change, as long as it's not the same package.
2009-04-19synch with my new style search/location changesMarc Espie
It's likely there will be some fallout, but it's getting a bit too large to keep around. This does kill a few very old oddities as well.
2009-04-14initial implementation of package signatures, based on x509 certificates andMarc Espie
smime detached signatures.
2009-03-05more stuff to check digests during extraction, if wanted.Marc Espie
Fix read/write of digitalsignature stuff. don't integrate manual-installs, since it's highly variable. create correct category for digitalsignature, so it gets written out.
2009-03-03stupid bug. If I don't name the class the same way, I don't overrideMarc Espie
behavior correctly. Be consistent, use the same naming scheme. problem noticed by Brad Smith.
2008-10-28"destate" comments, let them know in which cwd they stand.Marc Espie
This is actually useful for update-plist...
2008-10-24tweak compute_digest so that it `defaults' if invoked without a 2nd argument.Marc Espie
switch the default digest to sha256. It's been there for a few weeks, all package tools cope with both formats, now is the time for the switch.
2008-10-20Say goodbye to local $_Marc Espie
lexical scoping is so much neater (courtesy of perl 5.10)
2008-10-06turn the checksums stored in packing elements into real objects, so thatMarc Espie
pkg_add becomes mostly independent of the type of checksum stored. separate md5 into an abstract OpenBSD::digest class and an md5 subclass with specific methods to compute checksums and serialize results, and create an sha class that does the same thing with sha256 (with a base64 serializer)
2008-06-11further step on the road to tags:Marc Espie
make definitions migrate to the top of the packing-list, allow solver to find tag on the correct name (will look at full definition later).
2008-06-11let elements be responsible for computing their own md5 (allows specialMarc Espie
behavior for @bin object).
2008-06-06@wantlib elements become checksummableMarc Espie
2008-05-31add a marker for true binary files to be used by prelinkingMarc Espie
2008-03-08rename forced to definesMarc Espie
2007-07-14- there's no point in running mkfontdir only for @fontdir ; so let's runAntoine Jacoutot
mkfontscale too (and remove fonts.scale on package removal) discussed with matthieu@ and espie@ weeks ago "seems fine" pyr@, ok espie@
2007-06-18add tag no shadow, to allow us to specify that we do NOT want tempfilesMarc Espie
into some directories. a few minor style tweaks, such as using a nice join(map()) to build some strings.
2007-06-17fix format for timestamps. Use a non-ambiguous subset of ISO8601.Marc Espie
2007-06-17more scaffolding we don't really use yet.Marc Espie
2007-06-17add a bit of scaffolding for signaturesMarc Espie
2007-06-16introduce new stuff: @tag, to be used to tag files and other objects.Marc Espie
Only one tag for now: no checksum. Will supersede @comment no checksum eventually. Benefit: errors out in case of a typo.
2007-06-16Add variation on exec/unexec:Marc Espie
@exec-always @unexec-always @exec-add @unexec-delete @exec-update @unexec-update with the obvious semantics that *update are only run during updates, and *add/delete are only run during `pure' additions/removals. This should solve the problem of those packages that `lose' manual configuration when you update them (e.g., all the mod_xxx apache stuff and postfix). caveat: you will need to go through one finaly broken update before the new stuff kicks in.
2007-06-16use OpenBSD::Paths contentsMarc Espie
2007-06-14minor changes: move @ignore to deprecated stuff (it's been out for a fewMarc Espie
months now), register lastfileobject for future changes, make a common class for uniqueoptions.
2007-06-12tidy error messages: uses $! more consistently, do not append \n on die,Marc Espie
do append \n on warn. Fix the two cases where the temp dir vanished too soon: not copying +DESC should have been apparent. Not finding a +DISPLAY file is not a reason for burping all over the place.
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.