remove Exception update targets, just comment how

it's very odd to have buildsystem targets that go over the git repos
root directory boundary, as one *must not* depend on unrelated
things.

Rather just comment that and how this was derived from pve-common's
exception module.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-05-19 15:36:44 +02:00
parent 727d396e56
commit 2937fdf983
2 changed files with 3 additions and 7 deletions

View File

@ -11,9 +11,6 @@ DESTDIR=
PERL5DIR=$(DESTDIR)/usr/share/perl5
DOCDIR=$(DESTDIR)/usr/share/doc/$(PACKAGE)
PVE_COMMON_FILES= \
Exception.pm
GITVERSION:=$(shell git rev-parse HEAD)
all: $(DEB)
@ -43,10 +40,6 @@ install:
install -m 0755 examples/example2.pl $(DOCDIR)/examples
install -m 0755 examples/perftest1.pl $(DOCDIR)/examples
update-pve-common:
for i in $(PVE_COMMON_FILES); do cp ../pve-common/src/PVE/$$i PVE/APIClient/; done
for i in $(PVE_COMMON_FILES); do sed -i 's/PVE::/PVE::APIClient::/g' PVE/APIClient/$$i; done
.PHONY: upload
upload: $(DEB)
tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com upload --product pmg,pve --dist bullseye

View File

@ -1,5 +1,8 @@
package PVE::APIClient::Exception;
# NOTE: derived from pve-common's PVE::Execption by copying and then:
# sed -i 's/PVE::/PVE::APIClient::/g' Exception.pm
# a way to add more information to exceptions (see man perlfunc (die))
# use PVE::APIClient::Exception qw(raise);
# raise ("my error message", code => 400, errors => { param1 => "err1", ...} );