2 Commits

Author SHA1 Message Date
84f51bd2f3 feat: ignore repo URL stored in database
All checks were successful
Docker Image CI / build (pull_request) Successful in 7m39s
2024-06-17 18:06:19 -05:00
9eec2a2671 Back to development: 0.1.3 2024-06-17 18:05:30 -05:00
5 changed files with 9 additions and 10 deletions

6
Cargo.lock generated
View File

@@ -410,7 +410,7 @@ dependencies = [
[[package]]
name = "artix-gitea"
version = "0.1.2"
version = "0.1.3"
dependencies = [
"actix-web",
"awc",
@@ -420,7 +420,7 @@ dependencies = [
[[package]]
name = "artix-pkglib"
version = "0.1.2"
version = "0.1.3"
dependencies = [
"alpm",
"alpm-utils",
@@ -430,7 +430,7 @@ dependencies = [
[[package]]
name = "artixweb_packages"
version = "0.1.2"
version = "0.1.3"
dependencies = [
"actix-files",
"actix-identity",

View File

@@ -8,7 +8,7 @@ homepage = "https://packages.artixlinux.org"
keywords = ["artix", "packages", "gitea"]
license = "MIT OR Apache-2.0"
edition = "2021"
version = "0.1.2"
version = "0.1.3"
[lib]
name = "artix_gitea"

View File

@@ -8,7 +8,7 @@ homepage = "https://packages.artixlinux.org"
keywords = ["artix", "packages"]
license = "MIT OR Apache-2.0"
edition = "2021"
version = "0.1.2"
version = "0.1.3"
[lib]
name = "artix_pkglib"

View File

@@ -7,7 +7,7 @@ repository = "gitea.artixlinux.org/artix/artixweb_packages"
keywords = ["artix", "packages"]
license = "MIT OR Apache-2.0"
edition = "2021"
version = "0.1.2"
version = "0.1.3"
[[bin]]
name = "artixweb_packages"
@@ -15,8 +15,8 @@ test = false
bench = false
[dependencies]
artix-gitea = { path = "../artix-gitea", version = "=0.1.2" }
artix-pkglib = { path = "../artix-pkglib", version = "=0.1.2" }
artix-gitea = { path = "../artix-gitea", version = "=0.1.3" }
artix-pkglib = { path = "../artix-pkglib", version = "=0.1.3" }
actix-files = "0.6.0"
actix-identity = "0.4"

View File

@@ -457,7 +457,7 @@ pub(crate) async fn get_packages_details_inner(
.iter()
.map(std::string::ToString::to_string)
.collect(),
gitea_url: String::new(),
gitea_url: format!("{}/packages/{}", SETTINGS.gitea_url, pkg.name().to_string()),
dependencies: get_depends_from_package(
&handle,
pkg.arch().unwrap_or("any"),
@@ -517,7 +517,6 @@ pub(crate) async fn get_packages_details_inner(
web::block(move || get_package_metadata(&pkg_name_version, &pool)).await
{
result.last_updated = metadata.last_update.timestamp();
result.gitea_url = metadata.gitea_url;
result.flagged = metadata.flagged;
if let Some(flagged_on) = metadata.flag_on {
result.flagged_on = flagged_on.timestamp_millis();