upgpkg(main/broot): 1.30.1
This commit is contained in:
parent
1b920ab5a1
commit
890be4ec9c
|
@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://github.com/Canop/broot
|
|||
TERMUX_PKG_DESCRIPTION="A better way to navigate directories"
|
||||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION="1.29.0"
|
||||
TERMUX_PKG_VERSION="1.30.1"
|
||||
TERMUX_PKG_SRCURL=https://github.com/Canop/broot/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=11309da9ff5413e5cff4a9d68fe47a45870fb7225246becbb0dde925cb4b41ba
|
||||
TERMUX_PKG_SHA256=ce9defabcc44df97d0e088572bc00b51bb961b451d45f31dc1e57512d2515739
|
||||
TERMUX_PKG_AUTO_UPDATE=true
|
||||
TERMUX_PKG_DEPENDS="libgit2"
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
@ -21,6 +21,7 @@ termux_step_pre_configure() {
|
|||
for f in $CARGO_HOME/registry/src/*/libgit2-sys-*/build.rs; do
|
||||
sed -i -E 's/\.range_version\(([^)]*)\.\.[^)]*\)/.atleast_version(\1)/g' "${f}"
|
||||
done
|
||||
sed -i '/trash/d' $TERMUX_PKG_SRCDIR/Cargo.toml
|
||||
}
|
||||
|
||||
termux_step_make() {
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
+++ ./src/verb/internal.rs
|
||||
@@ -147,7 +147,6 @@
|
||||
toggle_trim_root: "toggle removing nodes at first level too" false,
|
||||
toggle_second_tree: "toggle display of a second tree panel" true,
|
||||
total_search: "search again but on all children" false,
|
||||
- trash: "move file to system trash" true,
|
||||
up_tree: "focus the parent of the current root" true,
|
||||
}
|
||||
|
||||
+++ ./src/verb/verb_store.rs
|
||||
@@ -298,7 +298,6 @@
|
||||
self.add_internal(toggle_perm).with_shortcut("perm");
|
||||
self.add_internal(toggle_sizes).with_shortcut("sizes");
|
||||
self.add_internal(toggle_trim_root);
|
||||
- self.add_internal(trash);
|
||||
self.add_internal(total_search).with_key(key!(ctrl-s));
|
||||
self.add_internal(up_tree).with_shortcut("up");
|
||||
}
|
||||
+++ ./src/browser/browser_state.rs
|
||||
@@ -598,17 +598,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
- Internal::trash => {
|
||||
- let path = self.displayed_tree().selected_line().path.to_path_buf();
|
||||
- info!("trash {:?}", &path);
|
||||
- match trash::delete(&path) {
|
||||
- Ok(()) => CmdResult::RefreshState { clear_cache: true },
|
||||
- Err(e) => {
|
||||
- warn!("trash error: {:?}", &e);
|
||||
- CmdResult::DisplayError(format!("trash error: {:?}", &e))
|
||||
- }
|
||||
- }
|
||||
- }
|
||||
Internal::quit => CmdResult::Quit,
|
||||
_ => self.on_internal_generic(
|
||||
w,
|
Loading…
Reference in New Issue