use new repoman for upload target
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 5 Aug 2016 11:10:17 +0000 (13:10 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 5 Aug 2016 11:10:17 +0000 (13:10 +0200)
Makefile

index 2507f85..05c9f63 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -68,13 +68,7 @@ deb ${DEB}:
 
 .PHONY: upload
 upload: ${DEB}
-       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw 
-       mkdir -p /pve/${RELEASE}/extra
-       rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
-       rm -f /pve/${RELEASE}/extra/Packages*
-       cp ${DEB} /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 - ${DEB} | ssh repoman@repo.proxmox.com upload
 
 .PHONY: clean
 clean: