diff --git a/0000-Fix-tree-args-option-displayed-incomplete.patch b/0000-Fix-tree-args-option-displayed-incomplete.patch deleted file mode 100644 index 986b0affbe04bceedf94ad942d3c7def8693ce0b..0000000000000000000000000000000000000000 --- a/0000-Fix-tree-args-option-displayed-incomplete.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 894f81c355d80445d9117194d458381b73da989f Mon Sep 17 00:00:00 2001 -From: xueyamao -Date: Sun, 24 Jul 2022 18:29:29 -0700 -Subject: [PATCH]tree:add --du and --prune description in usage() - -In usage(), '--du' and "--prune" options are supported, -but the description of them is not given. -So we add --du and --prune description in usage(). - -Signed-off-by: xueyamao xueyamao@kylinos.cn ---- - tree.c | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - -diff --git a/tree.c b/tree.c -index a633c57..e235853 100644 ---- a/tree.c -+++ b/tree.c -@@ -632,7 +632,7 @@ void usage(int n) - "\t[-L level [-R]] [-P pattern] [-I pattern] [-o filename] [--version]\n" - "\t[--help] [--inodes] [--device] [--noreport] [--nolinks] [--dirsfirst]\n" - "\t[--charset charset] [--filelimit[=]#] [--si] [--timefmt[=]]\n" -- "\t[--sort[=]] [--matchdirs] [--ignore-case] [--fromfile] [--]\n" -+ "\t[--sort[=]] [--matchdirs] [--ignore-case] [--fromfile] [--du] [--prune] [--]\n" - "\t[]\n"); - if (n < 2) return; - fprintf(stdout, -@@ -653,6 +653,8 @@ void usage(int n) - " --filelimit # Do not descend dirs with more than # files in them.\n" - " --timefmt Print and format time according to the format .\n" - " -o filename Output to file instead of stdout.\n" -+ " --du Print directory sizes.\n" -+ " --prune Prune empty directories from the output.\n" - " ------- File options -------\n" - " -q Print non-printable characters as '?'.\n" - " -N Print non-printable characters as is.\n" --- -1.8.3.1 - diff --git a/tree-1.8.0.tgz b/tree-1.8.0.tgz deleted file mode 100644 index fcaeda1a39ba3da1852abbb163b74e3cc1c3d6f7..0000000000000000000000000000000000000000 Binary files a/tree-1.8.0.tgz and /dev/null differ diff --git a/tree-2.0.2.tgz b/tree-2.0.2.tgz new file mode 100644 index 0000000000000000000000000000000000000000..31777ac0f67290af006989901d347c48ed461ebe Binary files /dev/null and b/tree-2.0.2.tgz differ diff --git a/tree.spec b/tree.spec index 859f28216acaad24b562982f6083cbad98ce33b7..876657197b12d542758a47812129702e40ca655d 100644 --- a/tree.spec +++ b/tree.spec @@ -1,6 +1,6 @@ Name: tree -Version: 1.8.0 -Release: 3 +Version: 2.0.2 +Release: 1 Summary: Tree file viewer tool License: GPLv2+ URL: http://mama.indstate.edu/users/ice/tree/ @@ -9,7 +9,6 @@ Source0: ftp://mama.indstate.edu/linux/tree/%{name}-%{version}.tgz BuildRequires: gcc # Document --du and --prune options in help output. -Patch0: 0000-Fix-tree-args-option-displayed-incomplete.patch %description Tree is a recursive directory listing command that produces a depth indented @@ -46,6 +45,12 @@ install -D -m 644 doc/tree.1 $RPM_BUILD_ROOT%{_mandir}/man1/tree.1 %{_mandir}/man1/* %changelog +* Mon Aug 08 2022 hkgy - 2.0.2-1 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:update to 2.0.2 + * Tue Jul 12 2022 xueyamao - 1.8.0-3 - DESC: Document --du and --prune options in help output