]> git.proxmox.com Git - proxmox-offline-mirror.git/commitdiff
apt repo: offline key: support PMG
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 8 Sep 2022 09:43:46 +0000 (11:43 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 8 Sep 2022 09:43:46 +0000 (11:43 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/bin/proxmox-apt-repo.rs

index 92ee39ea94aacb9165d0fb682ea3f803d830afa7..d70d3fbb52da54d967289bd111f1b2670ae85805 100644 (file)
@@ -40,7 +40,12 @@ fn set_subscription_key(
             cmd.arg(data);
             cmd
         }
-        ProductType::Pmg => todo!(),
+        ProductType::Pmg => {
+            let mut cmd = Command::new("pmgsubscription");
+            cmd.arg("set-offline-key");
+            cmd.arg(data);
+            cmd
+        }
         ProductType::Pom => unreachable!(),
     };