[pve-devel] [PATCH v2 grub 4/5] build: use repoman for upload target

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Nov 10 15:45:08 CET 2016


---
 Makefile | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index fc4a529..c999103 100644
--- a/Makefile
+++ b/Makefile
@@ -54,13 +54,7 @@ download:
 
 .PHONY: upload
 upload: ${DEBS}
-	umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw 
-	mkdir -p /pve/${RELEASE}/extra
-	rm -f /pve/${RELEASE}/extra/grub2-*.deb
-	rm -f /pve/${RELEASE}/extra/grub-*.deb
-	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 at repo.proxmox.com upload
 
 .PHONY: distclean
 distclean: clean
-- 
2.1.4





More information about the pve-devel mailing list