History log of /haiku/src/bin/package_repo/command_update.cpp
Revision Date Author Comments
# 93596e80 05-Nov-2017 Michael Lotz <mmlr@mlotz.ch>

package_repo: Fix update command when used with relative target.

Renaming of the temporary repo file failed when used with a relative
target path. The path was appended twice in such a case. Also when
used with a specified base directory, the relative temporary repo file
wasn't reachable from the changed working directory.

To fix both cases, create the BEntry pointing at the temporary repo
file before changing the directory and rename it using only the target
leaf name.


# 8e727451 13-Nov-2013 Oliver Tappe <zooey@hirschkaefer.de>

Fix behaviour of 'package_repo update':

* Instead of copying over the repository info from the source
repository, we need to read the repository info from a repository
info file corresponding to the target repository. Among other
problems, copying over the repository info from the source repo
put the wrong repository URL into the new repository, which in
turn caused the package resolution done by Haiku's build system to
fail (it tried to download packages from the wrong URL).
Additionally, I have updated the incorrect repository on the server, so
building Haiku-x86 should work again.


# 7092893b 19-Sep-2013 Oliver Tappe <zooey@hirschkaefer.de>

Actually rename the updated repository to the target name.


# b3a05eed 18-Sep-2013 Oliver Tappe <zooey@hirschkaefer.de>

Fix keeping of package info during repository update.

* actually write the package info read from the repository, not the one
from the package, as the latter is missing the checksum


# 85caa045 18-Sep-2013 Oliver Tappe <zooey@hirschkaefer.de>

Use BPackageInfoContentHandler in package_repo 'update'.

* Ingo has pointed me at this class which already does the collecting
of package attributes into a PackageInfo - so there's no need to
do it manually.


# da33beab 17-Sep-2013 Oliver Tappe <zooey@hirschkaefer.de>

Add command 'update' to package_repo.

* 'update' takes an existing repository and a package list file and then
creates a new repository from that, avoiding expensive
checksum-recomputations where possible


# 8e72745123581210d25c4fd7dc274f51ec425a9d 13-Nov-2013 Oliver Tappe <zooey@hirschkaefer.de>

Fix behaviour of 'package_repo update':

* Instead of copying over the repository info from the source
repository, we need to read the repository info from a repository
info file corresponding to the target repository. Among other
problems, copying over the repository info from the source repo
put the wrong repository URL into the new repository, which in
turn caused the package resolution done by Haiku's build system to
fail (it tried to download packages from the wrong URL).
Additionally, I have updated the incorrect repository on the server, so
building Haiku-x86 should work again.


# 7092893bdd93d25da3a7f53b675a1130f51a03fd 19-Sep-2013 Oliver Tappe <zooey@hirschkaefer.de>

Actually rename the updated repository to the target name.


# b3a05eede68d2b0881e5372c2002df639b2236b4 18-Sep-2013 Oliver Tappe <zooey@hirschkaefer.de>

Fix keeping of package info during repository update.

* actually write the package info read from the repository, not the one
from the package, as the latter is missing the checksum


# 85caa0459d645a614139d3692f68436e83abc0ab 18-Sep-2013 Oliver Tappe <zooey@hirschkaefer.de>

Use BPackageInfoContentHandler in package_repo 'update'.

* Ingo has pointed me at this class which already does the collecting
of package attributes into a PackageInfo - so there's no need to
do it manually.


# da33beab7098545ca6267da693f81bee608f5e50 17-Sep-2013 Oliver Tappe <zooey@hirschkaefer.de>

Add command 'update' to package_repo.

* 'update' takes an existing repository and a package list file and then
creates a new repository from that, avoiding expensive
checksum-recomputations where possible