Age | Commit message (Collapse) | Author |
|
Otherwise, we might miss a truncated archive that's missing its last file,
and PKG_CACHE won't work, since it hits a SIGPIPE too soon.
Nice testcase from sturm@
|
|
okay 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.
|
|
verify that modes/groups/owners are correct (code to come)
|
|
|
|
* 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.
|
|
Do not report more than 3 problems per filesystem unless -v -v.
|
|
|
|
|
|
Allows pkg_add to properly report truncated archives, instead of weird
can't call method check_name() on an unblessed reference
messages.
problem reported by brad@, somewhat difficult to reproduce.
as usual, the most obvious bugs take the longest time...
|
|
The archive will unpack correctly with tar, except that those names won't
be preserved.
The wrapper checks names against the packing-list to restore the correct names
on the fly.
Put into a separate file, as it is an extension of Ustar proper, and we're
going to do more archive checking in the future.
Lots of tests by Bernd Ahlers. Comments by Tom Cosgrove.
|
|
files, so that the progress meter will work.
|
|
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).
|
|
message if it didn't work.
Replaces messages like:
Use of uninitialized value in string ne at /usr/libdata/perl5/OpenBSD/Add.pm lin
e 344.
Use of uninitialized value in join or string at /usr/libdata/perl5/OpenBSD/Error
.pm line 67.
Error: archive does not match != share/autoconf-2.13/acheaders
with:
Error: truncated archive
|
|
large enough before installing a package.
|
|
install. When you add 2000 packages, this can be *real* confusing
otherwise.
|
|
|
|
|
|
Be consistent: show added files and deleted files if pretending.
|
|
- in validate_plist, don't re-add a file that exists.
- allows the virtual file system to put marks on existing files
- use a \$pkgname the first time a file is added (space constraints: don't
duplicate the pkgname).
- in CollisionReport, first check the vfs, so that we don't look
at installed packages when the collision only concerns newly added pkgs.
Makes pkg_add -n report collision reports correctly.
|
|
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.
|
|
|
|
|
|
|
|
put lookup_library code in a separate routine, and add a `harder' mode
for wantlib, that will also look in system libraries, and in the full
tree of dependent packages.
|
|
not registered with any package, and tell you if the file differs or not.
|
|
|
|
|
|
that much.
|
|
Update.
|
|
don't disturb existing objects if they're not directories,
create them better if they don't exist.
|
|
all the time.
|
|
|
|
|
|
change prototype of validate_plist, ditch globals cdrom_only and ftp_only
(stash this into state).
Use Warn properly.
|
|
use these to simplify all those packing lists manipulations.
demote non-root detection to a warning in -n mode:
fix a couple of minor bugs, of stuff that was run in -n mode and should not.
Namely, manpages were indexed/unindexed (ouch) and tempfiles were creating
during updates.
|
|
|
|
pkg_delete should remove tempnames, since files actually live there.
|
|
|
|
markers. Explain about tempname to PackingElement, so that we become
able to save temporary packing-lists (e.g, borking during replace will
now work).
|
|
let very verbose mode show moving files around.
|
|
check that linknames match while we're at it.
|
|
Let pkg_add -r do extraction first, and finish installation later.
|
|
next to their final locations.
XXX: doesn't work with hard links, yet.
|
|
to use local variables.
|