mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
Compare commits
4 Commits
v0.3.5.1
...
v0.3.6-alp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df777c63fe | ||
|
|
e9c9a67365 | ||
|
|
ac080edb02 | ||
|
|
5e580f9372 |
@@ -7,7 +7,7 @@
|
|||||||
"semver-prefix": "PureBoot-Release-",
|
"semver-prefix": "PureBoot-Release-",
|
||||||
"semver-range": "<28.3"
|
"semver-range": "<28.3"
|
||||||
},
|
},
|
||||||
"url": "https://source.puri.sm/firmware/releases/-/raw/master/librem_mini_v2/custom/pureboot-librem_mini_v2-basic_usb_autoboot_blob_jail-Release-28.3.rom.gz",
|
"url": "https://source.puri.sm/firmware/releases/-/raw/98418b5b8e9edc2bd1243ad7052a062f79e2b88e/librem_mini_v2/custom/pureboot-librem_mini_v2-basic_usb_autoboot_blob_jail-Release-28.3.rom.gz",
|
||||||
"shasum": "5019bcf53f7493c7aa74f8ef680d18b5fc26ec156c705a841433aaa2fdef8f35"
|
"shasum": "5019bcf53f7493c7aa74f8ef680d18b5fc26ec156c705a841433aaa2fdef8f35"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
use std::io::Cursor;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
use tokio::process::Command;
|
use tokio::process::Command;
|
||||||
@@ -23,8 +24,8 @@ pub async fn btrfs_check_repair(logicalname: impl AsRef<Path>) -> Result<Require
|
|||||||
Command::new("btrfs")
|
Command::new("btrfs")
|
||||||
.arg("check")
|
.arg("check")
|
||||||
.arg("--repair")
|
.arg("--repair")
|
||||||
.arg("--force")
|
|
||||||
.arg(logicalname.as_ref())
|
.arg(logicalname.as_ref())
|
||||||
|
.input(Some(&mut Cursor::new(b"y\n")))
|
||||||
.invoke(crate::ErrorKind::DiskManagement)
|
.invoke(crate::ErrorKind::DiskManagement)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
|||||||
@@ -71,12 +71,14 @@ async fn do_upload(
|
|||||||
mut url: Url,
|
mut url: Url,
|
||||||
user: &str,
|
user: &str,
|
||||||
pass: &str,
|
pass: &str,
|
||||||
|
pkg_id: &str,
|
||||||
body: Body,
|
body: Body,
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
url.set_path("/admin/v0/upload");
|
url.set_path("/admin/v0/upload");
|
||||||
let req = httpc
|
let req = httpc
|
||||||
.post(url)
|
.post(url)
|
||||||
.header(header::ACCEPT, "text/plain")
|
.header(header::ACCEPT, "text/plain")
|
||||||
|
.query(&[("id", pkg_id)])
|
||||||
.basic_auth(user, Some(pass))
|
.basic_auth(user, Some(pass))
|
||||||
.body(body)
|
.body(body)
|
||||||
.build()?;
|
.build()?;
|
||||||
@@ -178,6 +180,7 @@ pub async fn publish(
|
|||||||
registry.clone(),
|
registry.clone(),
|
||||||
&user,
|
&user,
|
||||||
&pass,
|
&pass,
|
||||||
|
&pkg.id,
|
||||||
Body::wrap_stream(file_stream),
|
Body::wrap_stream(file_stream),
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user