Skip to content

Commit

Permalink
fix: fix build without aosc feature
Browse files Browse the repository at this point in the history
  • Loading branch information
eatradish committed May 23, 2024
1 parent e43fbd2 commit f17e9c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions oma-refresh/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use oma_fetch::{
DownloadSource, DownloadSourceType, OmaFetcher, Summary,
};

#[cfg(feature = "aosc")]
use oma_fetch::DownloadError;

use oma_utils::dpkg::dpkg_arch;
Expand Down Expand Up @@ -69,7 +68,7 @@ pub enum RefreshError {
#[error("Invalid URL: {0}")]
InvaildUrl(String),
#[error("Can not parse distro repo data {0}: {1}")]
ParseDistroRepoDataError(String, serde_yaml::Error),
ParseDistroRepoDataError(&'static str, serde_yaml::Error),
#[error("Scan sources.list failed: {0}")]
ScanSourceError(SourceError),
#[error("Unsupport Protocol: {0}")]
Expand Down

0 comments on commit f17e9c9

Please sign in to comment.