]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-php-deps.patch
- updated for 4.4.2: de.po uses UTF-8 now
[packages/rpm.git] / rpm-php-deps.patch
CommitLineData
df271ccb
JB
1--- rpm-4.4.2/build/rpmfc.c.orig 2005-07-21 03:04:55.000000000 +0200
2+++ rpm-4.4.2/build/rpmfc.c 2005-07-23 13:48:23.419129800 +0200
3@@ -451,6 +451,8 @@
ff5da8bf
AF
4
5 { "perl script text", RPMFC_PERL|RPMFC_INCLUDE },
6 { "Perl5 module source text", RPMFC_PERL|RPMFC_MODULE|RPMFC_INCLUDE },
7+
8+ { "PHP script text", RPMFC_PHP|RPMFC_INCLUDE },
9
df271ccb 10 { " /usr/bin/python", RPMFC_PYTHON|RPMFC_INCLUDE },
ff5da8bf 11
df271ccb 12@@ -624,6 +626,7 @@
ff5da8bf
AF
13
14 fc->sb_java = freeStringBuf(fc->sb_java);
15 fc->sb_perl = freeStringBuf(fc->sb_perl);
16+ fc->sb_php = freeStringBuf(fc->sb_php);
17 fc->sb_python = freeStringBuf(fc->sb_python);
18
19 }
df271ccb 20@@ -711,6 +714,8 @@
ff5da8bf 21 fc->fcolor->vals[fc->ix] |= RPMFC_PERL;
df271ccb 22 else if (!strncmp(bn, "python", sizeof("python")-1))
ff5da8bf
AF
23 fc->fcolor->vals[fc->ix] |= RPMFC_PYTHON;
24+ else if (!strcmp(bn, "php"))
25+ fc->fcolor->vals[fc->ix] |= RPMFC_PHP;
26
27 break;
28 }
df271ccb
JB
29@@ -731,6 +736,10 @@
30 #endif
ff5da8bf
AF
31 xx = rpmfcHelper(fc, 'R', "python");
32 }
33+ if (fc->fcolor->vals[fc->ix] & RPMFC_PHP) {
34+ xx = rpmfcHelper(fc, 'P', "php");
35+ xx = rpmfcHelper(fc, 'R', "php");
36+ }
37
38 return 0;
39 }
df271ccb 40@@ -1059,6 +1068,7 @@
ff5da8bf 41 { rpmfcELF, RPMFC_ELF },
3fc6ab46 42 { rpmfcSCRIPT, (RPMFC_SCRIPT|RPMFC_PERL) },
43 { rpmfcSCRIPT, (RPMFC_SCRIPT|RPMFC_PYTHON) },
44+ { rpmfcSCRIPT, (RPMFC_SCRIPT|RPMFC_PHP) },
ff5da8bf
AF
45 { NULL, 0 }
46 };
47
df271ccb 48@@ -1228,6 +1238,9 @@
aa0d0676 49 /*@-branchstate@*/
df271ccb
JB
50 if (slen >= sizeof(".pm") && !strcmp(s+slen-(sizeof(".pm")-1), ".pm"))
51 ftype = "Perl5 module source text";
52+ /* XXX all files with extension ".php" are PHP modules for now. */
53+ else if (slen >= sizeof(".php") && !strcmp(s+slen-(sizeof(".php")-1), ".php"))
54+ ftype = "PHP script text";
55 /* XXX skip all files in /dev/ which are (or should be) %dev dummies. */
56 else if (slen >= fc->brlen+sizeof("/dev/") && !strncmp(s+fc->brlen, "/dev/", sizeof("/dev/")-1))
57 ftype = "";
ff5da8bf
AF
58--- rpm-4.2/build/rpmfc.h.wiget Tue Apr 1 10:00:23 2003
59+++ rpm-4.2/build/rpmfc.h Tue Apr 1 10:01:22 2003
60@@ -40,6 +40,7 @@
61 StringBuf sb_java; /*!< concatenated list of java colored files. */
62 StringBuf sb_perl; /*!< concatenated list of perl colored files. */
63 StringBuf sb_python;/*!< concatenated list of python colored files. */
64+ StringBuf sb_php; /*!< concatenated list of php colored files. */
65
66 };
67
This page took 0.060667 seconds and 4 git commands to generate.