diff options
author | Heinrich Wendel <lanius@gentoo.org> | 2003-09-22 13:32:56 +0000 |
---|---|---|
committer | Heinrich Wendel <lanius@gentoo.org> | 2003-09-22 13:32:56 +0000 |
commit | 7f479d5a64d120414e81f130c6bbb376b1fd4aec (patch) | |
tree | e8da68bfd9a5f2b297aa84e632f9c9767b930055 /app-misc/mc | |
parent | Removing ET for licensing issues. (diff) | |
download | historical-7f479d5a64d120414e81f130c6bbb376b1fd4aec.tar.gz historical-7f479d5a64d120414e81f130c6bbb376b1fd4aec.tar.bz2 historical-7f479d5a64d120414e81f130c6bbb376b1fd4aec.zip |
added missing patch
Diffstat (limited to 'app-misc/mc')
-rw-r--r-- | app-misc/mc/Manifest | 7 | ||||
-rw-r--r-- | app-misc/mc/files/mc-4.6.0-find.patch | 163 |
2 files changed, 167 insertions, 3 deletions
diff --git a/app-misc/mc/Manifest b/app-misc/mc/Manifest index d4415bdd027e..8b1d24d6b6ac 100644 --- a/app-misc/mc/Manifest +++ b/app-misc/mc/Manifest @@ -1,9 +1,10 @@ -MD5 d2d5359c2165abc5518cc77b2c3982c7 ChangeLog 4766 MD5 b392f5ff63cbd87230fa3798418fa22c mc-4.5.55-r7.ebuild 1973 MD5 4a0f9fcbb84e629fb68e563eb0d79814 mc-4.6.0-r2.ebuild 2308 MD5 a462a2fc9c8400c25663d25159f5bc70 mc-4.6.0-r3.ebuild 2506 -MD5 9f528fa7b6b4d2c202ce5f4e3a5173ba files/chdir-4.6.0.gentoo 159 +MD5 d2d5359c2165abc5518cc77b2c3982c7 ChangeLog 4766 MD5 d8853d9a555c715676945a15c98030c1 files/digest-mc-4.5.55-r7 125 -MD5 8a984e82187b67b6f31c45005ea0ba3d files/digest-mc-4.6.0-r2 61 +MD5 169bb0ff53b2a9c5271503bbcbccf3df files/mc-4.6.0-find.patch 5798 MD5 835695dda387b59a2497658f3f5af1d5 files/mc.gentoo 322 +MD5 9f528fa7b6b4d2c202ce5f4e3a5173ba files/chdir-4.6.0.gentoo 159 +MD5 8a984e82187b67b6f31c45005ea0ba3d files/digest-mc-4.6.0-r2 61 MD5 b2f0fb5840f36c3a8c3cd282cb5fecb6 files/digest-mc-4.6.0-r3 133 diff --git a/app-misc/mc/files/mc-4.6.0-find.patch b/app-misc/mc/files/mc-4.6.0-find.patch new file mode 100644 index 000000000000..7ec088a2d116 --- /dev/null +++ b/app-misc/mc/files/mc-4.6.0-find.patch @@ -0,0 +1,163 @@ +diff -Naur mc-4.6.0-orig/src/cmd.c mc-4.6.0/src/cmd.c +--- mc-4.6.0-orig/src/cmd.c 2003-02-05 16:54:33.000000000 +0100 ++++ mc-4.6.0/src/cmd.c 2003-09-15 17:24:51.000000000 +0200 +@@ -542,7 +542,7 @@ + if (dirflag) + continue; + } +- c = regexp_match (reg_exp_t, cpanel->dir.list [i].fname, match_file); ++ c = regexp_match (reg_exp_t, cpanel->dir.list [i].fname, match_file, 0); + if (c == -1){ + message (1, MSG_ERROR, _(" Malformed regular expression ")); + g_free (reg_exp); +@@ -588,7 +588,7 @@ + if (dirflag) + continue; + } +- c = regexp_match (reg_exp_t, cpanel->dir.list [i].fname, match_file); ++ c = regexp_match (reg_exp_t, cpanel->dir.list [i].fname, match_file, 0); + if (c == -1){ + message (1, MSG_ERROR, _(" Malformed regular expression ")); + g_free (reg_exp); +diff -Naur mc-4.6.0-orig/src/dir.c mc-4.6.0/src/dir.c +--- mc-4.6.0-orig/src/dir.c 2003-01-21 01:41:45.000000000 +0100 ++++ mc-4.6.0/src/dir.c 2003-09-15 17:25:06.000000000 +0200 +@@ -404,7 +404,7 @@ + *stale_link = 1; + } + if (!(S_ISDIR (buf1->st_mode) || *link_to_dir) && filter +- && !regexp_match (filter, dp->d_name, match_file)) ++ && !regexp_match (filter, dp->d_name, match_file, 0)) + return 0; + + /* Need to grow the *list? */ +diff -Naur mc-4.6.0-orig/src/ext.c mc-4.6.0/src/ext.c +--- mc-4.6.0-orig/src/ext.c 2002-11-14 08:25:19.000000000 +0100 ++++ mc-4.6.0/src/ext.c 2003-09-15 17:25:32.000000000 +0200 +@@ -450,7 +450,7 @@ + + if (content_string && content_string[0] + && regexp_match (ptr, content_string + content_shift, +- match_normal)) { ++ match_normal, 0)) { + found = 1; + } + +@@ -593,11 +593,11 @@ + /* Do not transform shell patterns, you can use shell/ for + * that + */ +- if (regexp_match (p, filename, match_normal)) ++ if (regexp_match (p, filename, match_normal, 0)) + found = 1; + } else if (!strncmp (p, "directory/", 10)) { + if (S_ISDIR (mystat.st_mode) +- && regexp_match (p + 10, filename, match_normal)) ++ && regexp_match (p + 10, filename, match_normal, 0)) + found = 1; + } else if (!strncmp (p, "shell/", 6)) { + p += 6; +diff -Naur mc-4.6.0-orig/src/find.c mc-4.6.0/src/find.c +--- mc-4.6.0-orig/src/find.c 2002-12-24 12:28:26.000000000 +0100 ++++ mc-4.6.0/src/find.c 2003-09-15 17:55:21.000000000 +0200 +@@ -507,6 +507,7 @@ + static int pos; + static int subdirs_left = 0; + char *tmp_name; /* For building file names */ ++ int flags = 0; + + if (!h) { /* someone forces me to close dirp */ + if (dirp) { +@@ -516,6 +517,10 @@ + dp = 0; + return 1; + } ++ ++ if (!(case_sense->state & C_BOOL)) ++ flags |= REG_ICASE; ++ + do_search_begin: + while (!dp){ + +@@ -589,7 +594,7 @@ + } + } + +- if (regexp_match (find_pattern, dp->d_name, match_file)){ ++ if (regexp_match (find_pattern, dp->d_name, match_file, flags)){ + if (content_pattern) + search_content (h, directory, dp->d_name); + else +diff -Naur mc-4.6.0-orig/src/user.c mc-4.6.0/src/user.c +--- mc-4.6.0-orig/src/user.c 2002-11-29 04:03:53.000000000 +0100 ++++ mc-4.6.0/src/user.c 2003-09-15 17:26:18.000000000 +0200 +@@ -390,18 +390,18 @@ + break; + case 'f': /* file name pattern */ + p = extract_arg (p, arg); +- *condition = panel && regexp_match (arg, panel->dir.list [panel->selected].fname, match_file); ++ *condition = panel && regexp_match (arg, panel->dir.list [panel->selected].fname, match_file, 0); + break; + case 'y': /* syntax pattern */ + if (edit_widget && edit_widget->syntax_type) { + p = extract_arg (p, arg); + *condition = panel && +- regexp_match (arg, edit_widget->syntax_type, match_normal); ++ regexp_match (arg, edit_widget->syntax_type, match_normal, 0); + } + break; + case 'd': + p = extract_arg (p, arg); +- *condition = panel && regexp_match (arg, panel->cwd, match_file); ++ *condition = panel && regexp_match (arg, panel->cwd, match_file, 0); + break; + case 't': + p = extract_arg (p, arg); +diff -Naur mc-4.6.0-orig/src/util.c mc-4.6.0/src/util.c +--- mc-4.6.0-orig/src/util.c 2003-01-28 23:58:23.000000000 +0100 ++++ mc-4.6.0/src/util.c 2003-09-15 17:55:00.000000000 +0200 +@@ -537,26 +537,29 @@ + return g_strdup (pattern); + } + +-int regexp_match (char *pattern, char *string, int match_type) ++int regexp_match (char *pattern, char *string, int match_type, int flags) + { + static regex_t r; + static char *old_pattern = NULL; + static int old_type; ++ static int old_flags; + int rval; + +- if (!old_pattern || STRCOMP (old_pattern, pattern) || old_type != match_type){ ++ if (!old_pattern || STRCOMP (old_pattern, pattern) || old_type != match_type || old_flags != flags){ + if (old_pattern){ + regfree (&r); + g_free (old_pattern); + old_pattern = NULL; + } + pattern = convert_pattern (pattern, match_type, 0); +- if (regcomp (&r, pattern, REG_EXTENDED|REG_NOSUB|MC_ARCH_FLAGS)) { ++ ++ if (regcomp (&r, pattern, REG_EXTENDED|REG_NOSUB|MC_ARCH_FLAGS|flags)) { + g_free (pattern); + return -1; + } + old_pattern = pattern; + old_type = match_type; ++ old_flags = flags; + } + rval = !regexec (&r, string, 0, NULL, 0); + return rval; +diff -Naur mc-4.6.0-orig/src/util.h mc-4.6.0/src/util.h +--- mc-4.6.0-orig/src/util.h 2003-01-27 22:07:29.000000000 +0100 ++++ mc-4.6.0/src/util.h 2003-09-15 17:23:04.000000000 +0200 +@@ -65,7 +65,7 @@ + enum { match_file, match_normal }; + extern int easy_patterns; + char *convert_pattern (char *pattern, int match_type, int do_group); +-int regexp_match (char *pattern, char *string, int match_type); ++int regexp_match (char *pattern, char *string, int match_type, int flags); + + /* Error pipes */ + void open_error_pipe (void); |