| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- have confirm go thru f() every time (adding
confirm_defaults_to_no/confirm_defaults_to_yes apis... verbose but effective)
- check DESCR in pkg_create, as suggested by sthen@
- don't do the whole safe dance when not needed (optimization)
- misnamed allowed -> forbidden (schwarze@)
This effectively prevents DESCR from using diacritics. Sorry!
Ingo makes a compelling argument that using UTF8 while installing a new
box is currently fairly dangerous, considering tty setups.
This affects about 10 ports at the moment, all of which were fixed before
this commit.
|
|
|
|
| |
from Mark Patruck
|
|
|
|
|
| |
interface, so that most is it interactive tests vanish from the main
program.
|
| |
|
| |
|
|
|
|
|
| |
(in large updatesets, it may not be obvious where the 2nd copy comes from,
as exemplified by ajacoutot@).
|
| |
|
|
|
|
|
| |
this does avoid infinite loops in case of wrong plists.
necessary since print-plist-with-depends CAN fail...
|
|
|
|
| |
but allow absolute pathnames (treat that as an implicit @cwd).
|
|
|
|
| |
always obvious)
|
|
|
|
| |
create verbose_system up in state, because it makes sense without verbose.
|
| |
|
| |
|
|
|
|
|
|
| |
pkg becomes the start hub, which does nothing except require the
correct module.
Saner code wrt Add/Delete, and more sharing.
|
| |
|
|
|
|
|
|
|
| |
to be just a very small stub that loads Carp::Heavy on demand.
Also, stop wrapping messages in "Expected", doesn't give us anything.
Finally, make RequiredBy calls be carp, so that we actually know where they
fail...
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
theo suggestion. Also go through the "state" object which simplifies code
a great deal)
|
|
|
|
|
|
| |
interface very locally...
model hints objects like Locations, to uniformize further treatment.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
as well.
|
|
|
|
|
|
| |
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...
|
|
|
|
| |
actual errors !
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
| |
|
|
|
|
|
| |
makes it easier for people to recover after a disk crash that
leaves /var/db/pkg half-empty.
|
|
|
|
|
|
|
|
|
|
|
| |
- do a test to create partial-foo-1.0.1 instead of partial-partial-foo-1.0
when removing partial-foo fails.
- have .libs name generation, e.g., .libs-foo, then .libs1-foo, then .libs2-foo
instead of .libs-.libs-foo.... extend the pkgspec pattern slightly, so
that all these are more or less equivalent for dependencies and conflicts.
With this, we can do practically any scenario of shared libs updates and
downgrades.
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
| |
|
|
|
|
|
| |
reword the introduction to the stuff originally from FreeBSD to clarify
slightly.
|
| |
|
|
|
|
| |
is taking so long...
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
|
|
|
| |
give the right pkg_delete command
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
not registered with any package, and tell you if the file differs or not.
|
| |
|
|
all the time.
|