]> git.proxmox.com Git - pve-apiclient.git/commitdiff
remove Exception update targets, just comment how
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 May 2023 13:36:44 +0000 (15:36 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 May 2023 13:36:46 +0000 (15:36 +0200)
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>
Makefile
PVE/APIClient/Exception.pm

index da4151059d090b79023b52f60cfc7b203c75539f..0125f2ab78411a6a32ab4a74db3935927c62617c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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
index c7c78c0b60023052488d547917b9f92c778f3e62..e9110f1cfaac91f524b6c6c500c4fd1dfba9865a 100644 (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", ...} );