mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 15:34:18 +08:00
Merge some imports
This commit is contained in:
parent
daf639a762
commit
1edc7badde
@ -1,20 +1,14 @@
|
||||
use pkg::PackageError;
|
||||
use pkg::{Package, PackageName};
|
||||
use pkg::{Package, PackageError, PackageName};
|
||||
use pkgar::{PackageFile, Transaction};
|
||||
use pkgar_core::PackageSrc;
|
||||
use pkgar_keys::PublicKeyFile;
|
||||
|
||||
use crate::config::CookConfig;
|
||||
use crate::cook::fetch;
|
||||
use crate::cook::package::{package_source_paths, package_target};
|
||||
use crate::cook::pty::PtyOut;
|
||||
use crate::cook::{fs, script::*};
|
||||
use crate::recipe::Recipe;
|
||||
use crate::recipe::{AutoDeps, CookRecipe};
|
||||
use crate::recipe::{BuildKind, OptionalPackageRecipe};
|
||||
use std::collections::VecDeque;
|
||||
use crate::cook::{fetch, fs, pty::PtyOut, script::*};
|
||||
use crate::recipe::{AutoDeps, BuildKind, CookRecipe, OptionalPackageRecipe, Recipe};
|
||||
use std::{
|
||||
collections::BTreeSet,
|
||||
collections::{BTreeSet, VecDeque},
|
||||
path::{Path, PathBuf},
|
||||
process::Command,
|
||||
str,
|
||||
|
||||
@ -1,32 +1,28 @@
|
||||
use crate::Error;
|
||||
use crate::Result;
|
||||
use crate::bail_other_err;
|
||||
use crate::config::translate_mirror;
|
||||
use crate::cook::cook_build;
|
||||
use crate::cook::fetch_repo;
|
||||
use crate::cook::fetch_repo::PlainPtyCallback;
|
||||
use crate::cook::fs::*;
|
||||
use crate::cook::package::get_package_name;
|
||||
use crate::cook::package::package_source_paths;
|
||||
use crate::cook::pty::PtyOut;
|
||||
use crate::cook::script::*;
|
||||
use crate::is_redox;
|
||||
use crate::log_to_pty;
|
||||
use crate::recipe::BuildKind;
|
||||
use crate::recipe::CookRecipe;
|
||||
use crate::recipe::SourceRecipe;
|
||||
use crate::wrap_io_err;
|
||||
use crate::wrap_other_err;
|
||||
use pkg::SourceIdentifier;
|
||||
use pkg::net_backend::DownloadBackendWriter;
|
||||
use std::cell::RefCell;
|
||||
use std::collections::BTreeMap;
|
||||
use std::fs;
|
||||
use std::fs::File;
|
||||
use std::io::Read;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::process::Command;
|
||||
use std::rc::Rc;
|
||||
use crate::cook::{
|
||||
cook_build,
|
||||
fetch_repo::{self, PlainPtyCallback},
|
||||
fs::*,
|
||||
package::{get_package_name, package_source_paths},
|
||||
pty::PtyOut,
|
||||
script::*,
|
||||
};
|
||||
use crate::{
|
||||
Error, Result, bail_other_err,
|
||||
config::translate_mirror,
|
||||
is_redox, log_to_pty,
|
||||
recipe::{BuildKind, CookRecipe, SourceRecipe},
|
||||
wrap_io_err, wrap_other_err,
|
||||
};
|
||||
use pkg::{SourceIdentifier, net_backend::DownloadBackendWriter};
|
||||
use std::{
|
||||
cell::RefCell,
|
||||
collections::BTreeMap,
|
||||
fs::{self, File},
|
||||
io::Read,
|
||||
path::{Path, PathBuf},
|
||||
process::Command,
|
||||
rc::Rc,
|
||||
};
|
||||
|
||||
pub struct FetchResult {
|
||||
pub source_dir: PathBuf,
|
||||
|
||||
@ -1,18 +1,9 @@
|
||||
use libc::{self, winsize};
|
||||
use std::fs::File;
|
||||
use std::io::{Read, Write};
|
||||
use std::io::{self, PipeReader, PipeWriter, Read, Write};
|
||||
use std::os::fd::FromRawFd;
|
||||
use std::os::unix::io::AsRawFd;
|
||||
use std::os::unix::process::CommandExt;
|
||||
use std::process::Child;
|
||||
use std::time::Duration;
|
||||
use std::{io, mem, ptr};
|
||||
use std::{
|
||||
io::{PipeReader, PipeWriter},
|
||||
process::Command,
|
||||
};
|
||||
|
||||
pub use std::os::unix::io::RawFd;
|
||||
use std::os::unix::{io::AsRawFd, io::RawFd, process::CommandExt};
|
||||
use std::process::{Child, Command};
|
||||
use std::{fs::File, mem, ptr, time::Duration};
|
||||
|
||||
use crate::{Error, Result, wrap_io_err};
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
use pkg::{Package, PackageName};
|
||||
use std::fmt::Write as _;
|
||||
use std::{
|
||||
collections::{HashMap, HashSet},
|
||||
fmt::Write as _,
|
||||
path::PathBuf,
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user