#
9d8d1144 |
|
14-May-2020 |
Andrew Lindesay <apl@lindesay.co.nz> |
Packages: Local Repo Config Formats The local storage of the various repositories' config needs to cater for different generations of storage formats and also needs to be able to swap out legacy repository identifiers. Change-Id: Ib4b3857254b7b703858eff6815e2d6c54d69da3c Reviewed-on: https://review.haiku-os.org/c/haiku/+/1963 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|
#
aa272ca3 |
|
01-May-2020 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
Package Kit: reduce identifer/base-url confusion For historical reasons, the package kit has an "url" field that is not actually meant to be used as an URL. Rename it in the API and user facing output as "identifier" to make it clear what the file is used for. This change preserves the "url" key in on-disk and online storage (hpkr files, stored settings, etc) in an attempt to not break anything. Fix one remaining misuse of the "url" field as an URL in get_package_dependencies. Add an unit test showing that BUrl does parse "tab" URIs properly (there is just a protocol and a path segment). Change-Id: I339ce526e5798d42d78ae650855d7e988dbb4a1a Reviewed-on: https://review.haiku-os.org/c/haiku/+/2542 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|
#
3b17d8dd |
|
27-Jun-2018 |
Andrew Lindesay <apl@lindesay.co.nz> |
HaikuDepot / PackageKit: Repositories 'Identifier' URL Repositories are identified with a 'url' in the remote 'repo.info' file. There is also a 'base url' which is the URL locally with which the system is able to access the repository data on. There is some confusion between these two terms in the source. This change aims to separate the two out and consistently name them. The settings for the repository locally also was not storing these values and that has been fixed. Debug info about the repositories also did not display the two urls consistently and will now also do so. Finally, HaikuDepot now correlates locally configured repositories with the data in HaikuDepotServer using the identifier URL; this makes the use of mirrors with HaikuDepot possible. Fixes #13888 Change-Id: I66dfe589b05c24e1ab123a6945352e0f24b60bf1
|
#
014eed80 |
|
06-Jul-2013 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Change repository directory layout * Under the base URL there are supposed to be the repository files and a subdirectory "packages". * Fix the repository URL related confusion introduced earlier. The URL in the repository info (and thus in the repository file) is supposed to be the base URL for the repository. It is not a (potentially) different base URL for the package files. Package and repository files were supposed to live in the same directory. Now, by requiring the package files to live in a subdirectory -- which can also be a symlink -- we gain some flexibility. The URL in the repository config is usually the same as the in the repository info, unless it refers to a mirror site. This allows for mirrors to copy the original repository verbatim. * Remove the PackageURL rule and introduce a DownloadPackage rule instead. The URL for a package file cannot be computed in the jam parsing phase anymore, as it contains the hash value of the package list. * BRepositoryConfig: Add PackagesURL() for convenience.
|
#
ee64a0a6 |
|
05-Jul-2013 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
BRepositoryConfig::SetTo(): fix use after deallocation The strings retrieved from the driver settings were used after unload_driver_settings(). Use BDriverSettings which also simplifies things quite a bit.
|
#
0d6b3b20 |
|
27-Jan-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
More work on package kit: * added class BPackageInfo, which contains packaging attributes of a package (the values relevant for package management) * implemented parser (mostly) for reading a BPackageInfo from a config file (.PackageInfo) in order to pass them on to the PackageWriter when creating a package * pulled hpkg-related stuff from bin/package into the package kit * adjusted packagefs-Volume to skip .PackageInfo files when populating the mountpoint, as those files shouldn't appear as part of an activated package git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40301 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
733c783d |
|
25-Jan-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
more work on package kit: * rip BRepositoryHeader out of BRepositoryConfig and add support for it to BRepositoryCache * implement repository removal * some minor cleanups git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40290 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7d7ed9bf |
|
25-Jan-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
Mostly style-related changes to package kit: * drop 'Haiku' namespace * rename 'Package' namespace to 'BPackageKit' * renamed all public classes to begin with a 'B' * renamed BPackageKit::Roster to BPackageKit::BPackageRoster to not clash with the BRoster from the application kit. * fix some instances of public headers including private ones Some functional changes, too: * JobQueue now removes and deletes dependants of failed jobs automatically * JobQueue supports waiting for jobs to become runnable * added a couple of InitCheck() methods where they make sense and invoke those in users of these classes git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40287 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
35edda8f |
|
24-Jan-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
* more work on the package kit, repositories can now be added and refreshed git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40280 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
500bb630 |
|
21-Jan-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
* WIP-commit of the first parts of the package kit and the pkgman (console-)tool git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40261 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
014eed80e289c2bbc187ac91bb7b3a35560a971f |
|
06-Jul-2013 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Change repository directory layout * Under the base URL there are supposed to be the repository files and a subdirectory "packages". * Fix the repository URL related confusion introduced earlier. The URL in the repository info (and thus in the repository file) is supposed to be the base URL for the repository. It is not a (potentially) different base URL for the package files. Package and repository files were supposed to live in the same directory. Now, by requiring the package files to live in a subdirectory -- which can also be a symlink -- we gain some flexibility. The URL in the repository config is usually the same as the in the repository info, unless it refers to a mirror site. This allows for mirrors to copy the original repository verbatim. * Remove the PackageURL rule and introduce a DownloadPackage rule instead. The URL for a package file cannot be computed in the jam parsing phase anymore, as it contains the hash value of the package list. * BRepositoryConfig: Add PackagesURL() for convenience.
|
#
ee64a0a6db4b838e7c644f17f41dfb0ced743d29 |
|
05-Jul-2013 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
BRepositoryConfig::SetTo(): fix use after deallocation The strings retrieved from the driver settings were used after unload_driver_settings(). Use BDriverSettings which also simplifies things quite a bit.
|
#
0d6b3b20e15fe2cbeb5e81749f888c26ca289338 |
|
27-Jan-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
More work on package kit: * added class BPackageInfo, which contains packaging attributes of a package (the values relevant for package management) * implemented parser (mostly) for reading a BPackageInfo from a config file (.PackageInfo) in order to pass them on to the PackageWriter when creating a package * pulled hpkg-related stuff from bin/package into the package kit * adjusted packagefs-Volume to skip .PackageInfo files when populating the mountpoint, as those files shouldn't appear as part of an activated package git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40301 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
733c783dc9cce693795e43d5bfec7b5ce4fd32f8 |
|
25-Jan-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
more work on package kit: * rip BRepositoryHeader out of BRepositoryConfig and add support for it to BRepositoryCache * implement repository removal * some minor cleanups git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40290 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7d7ed9bf4bdd7bc31e31143c402c4f96a324b30b |
|
25-Jan-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
Mostly style-related changes to package kit: * drop 'Haiku' namespace * rename 'Package' namespace to 'BPackageKit' * renamed all public classes to begin with a 'B' * renamed BPackageKit::Roster to BPackageKit::BPackageRoster to not clash with the BRoster from the application kit. * fix some instances of public headers including private ones Some functional changes, too: * JobQueue now removes and deletes dependants of failed jobs automatically * JobQueue supports waiting for jobs to become runnable * added a couple of InitCheck() methods where they make sense and invoke those in users of these classes git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40287 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
35edda8f0befb8667b593e2314f6d555a7db44d8 |
|
24-Jan-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
* more work on the package kit, repositories can now be added and refreshed git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40280 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
500bb6305c339017d7d7302dc1f63ac90443f267 |
|
21-Jan-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
* WIP-commit of the first parts of the package kit and the pkgman (console-)tool git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40261 a95241bf-73f2-0310-859d-f6bbb57e9c96
|