Use pkg_fmt from fetcher

This commit is contained in:
Félix Saparelli 2022-02-16 00:19:59 +13:00
parent a12e934940
commit 99e5de0025
4 changed files with 17 additions and 4 deletions

View file

@ -4,7 +4,7 @@ use log::info;
use reqwest::Method;
use super::Data;
use crate::{download, remote_exists};
use crate::{download, remote_exists, PkgFmt};
pub struct QuickInstall {
url: String,
@ -28,4 +28,8 @@ impl super::Fetcher for QuickInstall {
info!("Downloading package from: '{}'", self.url);
download(&self.url, dst).await
}
fn pkg_fmt(&self) -> PkgFmt {
PkgFmt::Tgz
}
}