buildsys: use repoman for upload
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 6 Mar 2017 08:52:04 +0000 (09:52 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 6 Mar 2017 08:52:04 +0000 (09:52 +0100)
Makefile

index 5794a25..f895608 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,14 +30,7 @@ download:
 
 .PHONY: upload
 upload: ${DEBS}
-       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
-       mkdir -p /pve/${RELEASE}/extra
-       rm -f /pve/${RELEASE}/extra/iproute2_*.deb
-       rm -f /pve/${RELEASE}/extra/iproute2-doc_*.deb
-       rm -f /pve/${RELEASE}/extra/Packages*
-       cp ${DEBS} /pve/${RELEASE}/extra
-       cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
-       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
+       tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload
 
 .PHONY: clean
 clean: