Age | Commit message (Collapse) | Author |
|
verify that modes/groups/owners are correct (code to come)
|
|
this differently. Namely, use specific variables that default to the
numeric value if the uid/gid don't exist in mkheader.
Since the entry fields are not filled, ArcCheck gets all it needs for
the package check.
|
|
Note that, for simplicity, FETCH_CMD must be a single command with
a full path. Use a script if you must.
|
|
|
|
let grabPlist finish closing what it opened.
|
|
|
|
delaying reading the full info directory to a temporary directory.
When we open a package, we just scan for the CONTENTS. If it's the
first file, we stash it into memory and STOP there, delaying grabbing
the rest of the special files to the first call to info().
Make sure the next() proxy shows only real file, by grabbing info files
if necessary.
Introduce handle->plist() method that can retrieve the plist from either
the version stored in memory, or in a file in the temp directory.
|
|
in order to make further code more symetric and efficient.
|
|
a lot yet.
|
|
|
|
- kill multiple inheritance;
- replace pipename() with open_pipe, and use explicit exec.
- add intermediate PackageRepository::Distant class.
- if PKG_CACHE is set, use an intermediate wedge that stores the
retrieved package in that directory.
- handle signals correctly in that case.
|
|
|
|
re-add list, which returns a \@, whereas available returns a @.
|
|
|
|
parts: the one that gets (and renames) files from the archive (getNext)
that depends on Package/FatPackage, and the one that handles opening/
reopening/caching archives (true next);
|
|
|
|
|
|
packages compared to other `repositories'.
|
|
|
|
PackageRepositoryList can handle very close to PackageRepository
|
|
new method: wipe(), that removes the info directory, redirected to
the PackageRepository object which `knows' how to wipe stuff out.
(this allows us to eliminate special cases for installed/not installed
packages in the near future).
|
|
afterwards.
|
|
a temporary file, by using perl's new-fangled
open my $fh, '<', \$scalar
|
|
- rename PackageLocation to PackageRepository.
- new class `PackageLocation' which symbolizes an actually opened package.
- rename quite a few things and reorg stuff to make lots more sense.
- put fat packages into a derived FatPackageLocation class.
- fix a bug that made sure fat packages could not be opened on stdin.
ways cleaner and easier to extend...
|
|
|
|
|
|
|
|
* 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.
|
|
tests sturm@, aanriot@
okay deraadt@
|
|
|
|
if create() fails, we want to remove any stub file (and report the
problem), so that tools won't get confused in believing the packing-list
got created correctly.
|
|
Do not report more than 3 problems per filesystem unless -v -v.
|
|
|
|
(remember, perl signal handlers are safe, e.g., there's a redirection).
Handle critical section where we create the directory so that we die after
it's registered.
|
|
package at all.
|
|
|
|
quite generic.
|
|
to add packages for the wrong architecture.
Noticed by Tim Kornau.
|
|
|
|
|
|
the package, or if we call add_bogus_libs directly.
|
|
slightly more verbose message.
|
|
Fixes a nasty bug: you could have /var/db/pkg mounted read-only,
and still delete a package and keep the packing information around.
Also makes pkg_add -r estimation of size more accurate, even though
it usually doesn't matter, except for packages with huge packing-lists.
|
|
|
|
adjust find_updatenames accordingly.
|
|
|
|
- distant_available(), using the distant listing functions.
- stem compiler, to match lots of stems
|
|
that the distant listing code can use it too. Since the distant listing code
creates transient connections, it does not actually need to be tracked,
just to ensure that it has a slot !
|
|
use nlist *.tgz instead of ls to gain speed. http does not need
any command, it just retrieves the directory index.
(code not used yet, but so blatantly incorrect)
|
|
then it matches when it is equal.
|