SHA256
1
0
forked from pool/ack

Accepting request 766335 from home:mrey:branches:utilities

- ack 3.3.1:
  * Fix some regexes that would be shown as invalid when used with
    the -Q option. Since the -Q tells ack to treat the regex as a
    literal, this shouldn't be possible (GH #294)
- includes changes from 3.3.0:
  * Improve error message when the regex passed is invalid
  * Add new file and directory exclusions
  * Reorganize --help menu
  * Output message when using --show-types without -f or -g if it
    will have no effect
  * Improve error message when ack gets passed two options that
    can't be used together
  * Fix the behavior of --break and --heading
  * Warn when option pairs don't make sense to use together
  * Fix required minimum version of Getopt::Long module (GH #287)
  * Line number and filename separators in --passthru mode now work
    the same as in context (-A/-B/-C) mode (GH #291)
- Rebase patches:
  * ack-add_spec.patch
  * ack-ignore-osc.patch

OBS-URL: https://build.opensuse.org/request/show/766335
OBS-URL: https://build.opensuse.org/package/show/utilities/ack?expand=0&rev=35
This commit is contained in:
Michael Vetter 2020-01-28 07:53:53 +00:00 committed by Git OBS Bridge
parent 97aec630da
commit e07234c5e9
6 changed files with 47 additions and 29 deletions

View File

@ -7,15 +7,11 @@ References: https://github.com/petdance/ack2/pull/490
Add rpm/.spec to known file types
---
ConfigDefault.pm | 3 +++
1 file changed, 3 insertions(+)
Index: ack-2.14/lib/App/Ack/ConfigDefault.pm
===================================================================
--- ack-2.14.orig/lib/App/Ack/ConfigDefault.pm 2014-09-04 22:19:55.000000000 +0100
+++ ack-2.14/lib/App/Ack/ConfigDefault.pm 2014-09-04 22:20:35.000000000 +0100
@@ -342,6 +342,9 @@ sub _options_block {
# http://docutils.sourceforge.net/rst.html
diff -Pdru ack-v3.3.1.orig/lib/App/Ack/ConfigDefault.pm ack-v3.3.1/lib/App/Ack/ConfigDefault.pm
--- ack-v3.3.1.orig/lib/App/Ack/ConfigDefault.pm 2020-01-22 14:49:59.116748125 +0100
+++ ack-v3.3.1/lib/App/Ack/ConfigDefault.pm 2020-01-22 14:51:46.072490906 +0100
@@ -392,6 +392,9 @@
# https://docutils.sourceforge.io/rst.html
--type-add=rst:ext:rst
+# RPM

View File

@ -6,15 +6,10 @@ Upstream: No
Ignore .osc
---
ConfigDefault.pm | 3 +++
t/ack-dump.t | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
Index: ack-v3.0.2/lib/App/Ack/ConfigDefault.pm
===================================================================
--- ack-v3.0.2.orig/lib/App/Ack/ConfigDefault.pm
+++ ack-v3.0.2/lib/App/Ack/ConfigDefault.pm
@@ -70,6 +70,9 @@ sub _options_block {
diff -Pdru ack-v3.3.1.orig/lib/App/Ack/ConfigDefault.pm ack-v3.3.1/lib/App/Ack/ConfigDefault.pm
--- ack-v3.3.1.orig/lib/App/Ack/ConfigDefault.pm 2020-01-13 20:18:17.000000000 +0100
+++ ack-v3.3.1/lib/App/Ack/ConfigDefault.pm 2020-01-22 14:32:56.451135251 +0100
@@ -70,6 +70,9 @@
# https://www.mercurial-scm.org/
--ignore-directory=is:.hg
@ -24,14 +19,15 @@ Index: ack-v3.0.2/lib/App/Ack/ConfigDefault.pm
# Quilt
# https://directory.fsf.org/wiki/Quilt
--ignore-directory=is:.pc
Index: ack-v3.0.2/t/ack-dump.t
===================================================================
--- ack-v3.0.2.orig/t/ack-dump.t
+++ ack-v3.0.2/t/ack-dump.t
@@ -29,5 +29,5 @@ DUMP: {
diff -Pdru ack-v3.3.1.orig/t/internals/ack-dump.t ack-v3.3.1/t/internals/ack-dump.t
--- ack-v3.3.1.orig/t/internals/ack-dump.t 2020-01-13 20:18:17.000000000 +0100
+++ ack-v3.3.1/t/internals/ack-dump.t 2020-01-22 14:39:05.934290071 +0100
@@ -29,7 +29,7 @@
is( scalar @perl, 2, 'Two specs for Perl' );
my @ignore_dir = grep { /ignore-dir/ } @results;
- is( scalar @ignore_dir, 24, 'Twenty-four specs for ignoring directories' );
+ is( scalar @ignore_dir, 25, 'Twenty-five specs for ignoring directories' );
- is( scalar @ignore_dir, 27, 'Twenty-seven specs for ignoring directories' );
+ is( scalar @ignore_dir, 28, 'Twenty-eight specs for ignoring directories' );
}
exit 0;

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5a070954513c1a6c5622d3b83ee3ddd04b5733f96c761f216d539193f284db03
size 246140

3
ack-v3.3.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ae3b62049f046139470933e460f2434f881f522b6b2c2b4a94cd624fef4fd589
size 250024

View File

@ -1,3 +1,29 @@
-------------------------------------------------------------------
Wed Jan 22 14:02:54 UTC 2020 - Martin Rey <mrey@suse.com>
- ack 3.3.1:
* Fix some regexes that would be shown as invalid when used with
the -Q option. Since the -Q tells ack to treat the regex as a
literal, this shouldn't be possible (GH #294)
- includes changes from 3.3.0:
* Improve error message when the regex passed is invalid
* Add new file and directory exclusions
* Reorganize --help menu
* Output message when using --show-types without -f or -g if it
will have no effect
* Improve error message when ack gets passed two options that
can't be used together
* Fix the behavior of --break and --heading
* Warn when option pairs don't make sense to use together
* Fix required minimum version of Getopt::Long module (GH #287)
* Line number and filename separators in --passthru mode now work
the same as in context (-A/-B/-C) mode (GH #291)
- Rebase patches:
* ack-add_spec.patch
* ack-ignore-osc.patch
-------------------------------------------------------------------
Sat Nov 23 11:32:01 UTC 2019 - Andreas Stieger <andreas.stieger@gmx.de>

View File

@ -24,7 +24,7 @@
%endif
%{!?perl_make_install: %global perl_make_install make DESTDIR=%{buildroot} install_vendor}
Name: ack
Version: 3.2.0
Version: 3.3.1
Release: 0
Summary: Grep-Like Text Finder
License: Artistic-2.0