-upload: ${DEB}
- ./repoid.pl .git check
- 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
-
-#.PHONY: poupload
-#poupload:
-# rsync po/*.po po/pve-manager.pot pve.proxmox.com:/home/ftp/sources/po-files/
-
-#.PHONY: aplupload
-#aplupload:
-# ./aplinfo/apltest.pl
-# gpg -bas -u support@proxmox.com aplinfo/aplinfo.dat
-# gzip -c aplinfo/aplinfo.dat > aplinfo.dat.gz
-# scp aplinfo/aplinfo.dat aplinfo.dat.gz aplinfo/aplinfo.dat.asc pve.proxmox.com:/home/ftp/appliances/
+upload: ${DEB} check
+ # check if working directory is clean
+ git diff --exit-code --stat && git diff --exit-code --stat --staged
+ tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com upload --product pve --dist bullseye