updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / mc-suse / mc-rpm.patch
blobcc2d6e416ce07621e4049db6dc965d4b1b06f574
1 --- syntax/spec.syntax
2 +++ syntax/spec.syntax
3 @@ -11,6 +11,7 @@
4 keyword whole Description: green
5 keyword whole Distribution: green
6 keyword whole Doc\{Dd\}ir: green
7 + keyword whole Enhances: green
8 keyword whole Epoch: green
9 keyword whole Exclude\{Aa\}rch: green
10 keyword whole Exclusive\{Aa\}rch: green
11 @@ -27,16 +28,19 @@
12 keyword whole Prefix: green
13 keyword whole Pre\{Rr\}eq: green
14 keyword whole Provides: green
15 + keyword whole Recommends: green
16 keyword whole Release: green
17 keyword whole Requires: green
18 keyword whole Requires(\[abcdefghijklmnopqrstuvwxyz\]): green
19 keyword whole Root: green
20 keyword whole Serial: white
21 keyword whole Source\[0123456789\]: green
22 + keyword whole Suggests: green
23 keyword whole Summary: green
24 keyword whole Summary(\[abcdefghijklmnopqrstuvwxyz\]): green
25 keyword whole Summary(\[abcdefghijklmnopqrstuvwxyz\]_\[ABCDEFGHIJKLMNOPQRSTUVWXYZ\]): green
26 keyword whole Summary(\[abcdefghijklmnopqrstuvwxyz\]_\[ABCDEFGHIJKLMNOPQRSTUVWXYZ\].\[ABCDEFGHIJKLMNOPQRSTUVWXYZ-1234567890\]): green
27 + keyword whole Supplements: green
28 keyword whole Vendor: green
29 keyword whole Version: green
30 keyword whole U\{Rr\}\{Ll\}: green
31 --- vfs/extfs/rpm
32 +++ vfs/extfs/rpm
33 @@ -118,6 +118,14 @@
34 if test "$MCFASTRPM" != 0 ; then
35 $RPM -qp --qf "[%{REQUIRENAME}\n]" "$f" | grep "(none)" > /dev/null ||
36 echo "$FILEPREF 0 $DATE INFO/REQUIRENAME"
37 + $RPM -qp --qf "[%|ENHANCESFLAGS:depflag_strong?{}:{%{ENHANCESNAME} %{ENHANCESFLAGS:depflags} %{ENHANCESVERSION}\n}|]" "$f" | grep "(none)" > /dev/null ||
38 + echo "$FILEPREF 0 $DATE INFO/ENHANCES"
39 + $RPM -qp --qf "[%|SUGGESTSFLAGS:depflag_strong?{}:{%{SUGGESTSNAME} %{SUGGESTSFLAGS:depflags} %{SUGGESTSVERSION}\n}|]" "$f" | grep "(none)" > /dev/null ||
40 + echo "$FILEPREF 0 $DATE INFO/SUGGESTS"
41 + $RPM -qp --qf "[%|SUGGESTSFLAGS:depflag_strong?{%{SUGGESTSNAME} %{SUGGESTSFLAGS:depflags} %{SUGGESTSVERSION}\n}|]" "$f" | grep "(none)" > /dev/null ||
42 + echo "$FILEPREF 0 $DATE INFO/ENHANCES"
43 + $RPM -qp --qf "[%|ENHANCESFLAGS:depflag_strong?{%{ENHANCESNAME} %{ENHANCESFLAGS:depflags} %{ENHANCESVERSION}\n}|]" "$f" | grep "(none)" > /dev/null ||
44 + echo "$FILEPREF 0 $DATE INFO/SUGGESTS"
45 $RPM -qp --qf "[%{OBSOLETES}\n]" "$f" | grep "(none)" > /dev/null ||
46 echo "$FILEPREF 0 $DATE INFO/OBSOLETES"
47 $RPM -qp --qf "[%{PROVIDES}\n]" "$f" | grep "(none)" > /dev/null ||
48 @@ -128,8 +136,10 @@
49 echo "$FILEPREF 0 $DATE INFO/CHANGELOG"
50 else
51 echo "$FILEPREF 0 $DATE INFO/REQUIRENAME"
52 - echo "$FILEPREF 0 $DATE INFO/OBSOLETES"
53 - echo "$FILEPREF 0 $DATE INFO/PROVIDES"
54 + echo "$FILEPREF 0 $DATE INFO/ENHANCES"
55 + echo "$FILEPREF 0 $DATE INFO/SUGGESTS"
56 + echo "$FILEPREF 0 $DATE INFO/RECOMMENDS"
57 + echo "$FILEPREF 0 $DATE INFO/SUPPLEMENTS"
58 echo "$FILEPREF 0 $DATE INFO/CONFLICTS"
59 echo "$FILEPREF 0 $DATE INFO/CHANGELOG"
61 @@ -162,6 +172,10 @@
62 INFO/LICENSE) $RPM -qp --qf "%{LICENSE}\n" "$f" >"$3"; exit 0;;
63 INFO/RPMVERSION) $RPM -qp --qf "%{RPMVERSION}\n" "$f" >"$3"; exit 0;;
64 INFO/REQUIRENAME) $RPM -qp --qf "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" "$f" >"$3"; exit 0;;
65 + INFO/ENHANCES) $RPM -qp --qf "[%|ENHANCESFLAGS:depflag_strong?{}:{%{ENHANCESNAME} %{ENHANCESFLAGS:depflags} %{ENHANCESVERSION}\n}|]" "$f" >"$3"; exit 0;;
66 + INFO/SUGGESTS) $RPM -qp --qf "[%|SUGGESTSFLAGS:depflag_strong?{}:{%{SUGGESTSNAME} %{SUGGESTSFLAGS:depflags} %{SUGGESTSVERSION}\n}|]" "$f" >"$3"; exit 0;;
67 + INFO/RECOMMENDS) $RPM -qp --qf "[%|SUGGESTSFLAGS:depflag_strong?{%{SUGGESTSNAME} %{SUGGESTSFLAGS:depflags} %{SUGGESTSVERSION}\n}|]" "$f" >"$3"; exit 0;;
68 + INFO/SUPPLEMENTS) $RPM -qp --qf "[%|ENHANCESFLAGS:depflag_strong?{%{ENHANCESNAME} %{ENHANCESFLAGS:depflags} %{ENHANCESVERSION}\n}|]" "$f" >"$3"; exit 0;;
69 INFO/PROVIDES) $RPM -qp --qf "[%{PROVIDES}\n]" "$f" >"$3"; exit 0;;
70 INFO/SCRIPTS/PREIN) $RPM -qp --qf "%{RPMTAG_PREIN}\n" "$f" >"$3"; exit 0;;
71 INFO/SCRIPTS/POSTIN) $RPM -qp --qf "%{RPMTAG_POSTIN}\n" "$f" >"$3"; exit 0;;