summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
AgeCommit message (Collapse)Author
2008-12-15tweak the defaults to also do -M if you ask for info on a given package.Marc Espie
2008-12-14display message is +DISPLAY; from Ingo SchwarzeJason McIntyre
ok espie
2008-12-11copying local files may cause some issues, as noticed by sturm@Marc Espie
Try really hard to avoid copying a file on itself: by first checking the stat() results, and if they are not available (since some people use fucked-up stuff like AFS), rely on the file names as a last resort. This should avoid stuff getting copied from PKG_CACHE to PKG_CACHE and erasing itself in a few cases...
2008-11-03Fix some errors, okay espie@Landry Breuil
2008-10-29Xr OpenBSD::Intro(3p)Marc Espie
2008-10-28NewUser and NewGroup are subclasses of NewAuthMarc Espie
2008-10-28"destate" comments, let them know in which cwd they stand.Marc Espie
This is actually useful for update-plist...
2008-10-26zap old code that was a confusion with -l, and didn't ever do anythingMarc Espie
in the new pkg_info problem noticed by landry@
2008-10-25Copy packages to the cache if a local PKG_PATH is used and PKG_CACHE isBernd Ahlers
defined. This unbreaks FETCH_PACKAGES with a local package repository. help & discussion: espie@ and sturm@
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-21ouch, this one requires local for nowMarc Espie
(as found out by Chris Cappuccio)
2008-10-20Say goodbye to local $_Marc Espie
lexical scoping is so much neater (courtesy of perl 5.10)
2008-10-10add rcs tagsSteven Mestdagh
ok espie
2008-10-07oops, missed one compute_md5Marc Espie
noticed by djm@
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-10-04tighter specs (tested for ages locally)Marc Espie
2008-09-29add prototype for Carp::croak to prevent error under perl 5.10Simon Bertrang
feedback by espie@, prodded by millert@
2008-09-11Do not clean ${PACKAGES} as this is the source files, if run without obj dirDale Rahn
present, it will delete the source files. Found by Steven Roberts.
2008-09-02Install in the correct directory with NOMAN set. Based on makewhatisDale Rahn
with additional CLEANFILES from theo.
2008-08-14let's make this half useful to recover from crashed disks with wrong info.Marc Espie
2008-07-26kill trailing whitespace;Jason McIntyre
2008-07-25Mention @bin plist element, ok espie@Ian Darwin
2008-07-04remove trailing whitespace;Jason McIntyre
2008-07-04clean up parser a bit, separating local/distant parts in a more reusable way,Marc Espie
and simplify file: parsing scheme (trying it with file:, then without is a bit stupid once we have the pieces to put it back together directly). Drop the restriction on urls from the man page, no need to finish stuff with /.
2008-07-03deal with hrefs containing '/' instead of just the package file nameNikolay Sturm
this permits fetching packages from thttpd ok espie
2008-06-27synch with rest of workMarc Espie
2008-06-25much better url parser.Marc Espie
2008-06-21rework collisionreport to allow some limited repair capabilities:Marc Espie
assuming none of the files is registered, we can assume that the package registration fails, and then we remove the files, and install the package. Then we also walk installed packages to restore dependencies that would have been erased (this is fairly simple-minded and may fail in weird cases).
2008-06-21introduce unlink operation with nice propertiesMarc Espie
2008-06-21use autovivificationMarc Espie
2008-06-20prepare to handle future extensionsMarc Espie
2008-06-18better standards for inst: paths.Marc Espie
2008-06-18forgot: changed PackageLocator so that the new parse method is responsibleMarc Espie
for breaking up the next part.
2008-06-18use path_parse to retrieve pkg_info anywhereMarc Espie
2008-06-18special-case parser so that /var/db/pkg becomes inst: during path_parse.Marc Espie
2008-06-15tweak the code that finds packages to find distant stemsMarc Espie
(todo: match pkg_add code better)
2008-06-15make sure installed_stem is defined when needed, prevents some weirdMarc Espie
errors.
2008-06-13550 is fatal, don't bother retrying.Marc Espie
Problem found by Martynas Venckus, fix by me.
2008-06-11cut lookup tag code in smaller piecesMarc Espie
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-11defer to the packing element for computing md5Marc Espie
2008-06-11refactor md5 code to be able to work from a filehandle (like a pipe output)Marc Espie
2008-06-11let elements be responsible for computing their own md5 (allows specialMarc Espie
behavior for @bin object).
2008-06-10typo in -as yet- unused code.Marc Espie
2008-06-09allow direct copy of fh to anotherMarc Espie
2008-06-06oops, @bin files are files tooMarc Espie
2008-06-06@wantlib elements become checksummableMarc Espie
2008-06-02fix references to OpenBSD:Ustar; from Alan BuenoJason McIntyre
2008-06-01provision for reading only prelink related stuff from a package (maybeMarc Espie
a bit more, we'll trim it as fitting).
2008-05-31add a marker for true binary files to be used by prelinkingMarc Espie