summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-March/013124.html
blob: 6404109b90509fb2b072b81f95238787778a3282 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] [soft-commits] [3526] make clean-rpmsrate 11. 5% faster on average on cached repo directory by
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B3526%5D%20make%20clean-rpmsrate%2011.%205%25%0A%20faster%20on%20average%20on%20cached%20repo%20directory%20by&In-Reply-To=%3CCAONrEta7x%2BBJV2Q%2BD%2BS%2BzZ5SC3JVdU5tR2a2ObT8JzF7W7DF1g%40mail.gmail.com%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="013122.html">
   <LINK REL="Next"  HREF="013127.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] [soft-commits] [3526] make clean-rpmsrate 11. 5% faster on average on cached repo directory by</H1>
    <B>Thierry Vignaud</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B3526%5D%20make%20clean-rpmsrate%2011.%205%25%0A%20faster%20on%20average%20on%20cached%20repo%20directory%20by&In-Reply-To=%3CCAONrEta7x%2BBJV2Q%2BD%2BS%2BzZ5SC3JVdU5tR2a2ObT8JzF7W7DF1g%40mail.gmail.com%3E"
       TITLE="[Mageia-dev] [soft-commits] [3526] make clean-rpmsrate 11. 5% faster on average on cached repo directory by">thierry.vignaud at gmail.com
       </A><BR>
    <I>Thu Mar 15 20:27:53 CET 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="013122.html">[Mageia-dev] [soft-commits] [3526] make clean-rpmsrate 11. 5% faster on average on cached repo directory by
</A></li>
        <LI>Next message: <A HREF="013127.html">[Mageia-dev] Mageia 2 Beta 2 is available
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#13124">[ date ]</a>
              <a href="thread.html#13124">[ thread ]</a>
              <a href="subject.html#13124">[ subject ]</a>
              <a href="author.html#13124">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>On 15 March 2012 20:20, Pascal Terjan &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">pterjan at gmail.com</A>&gt; wrote:
&gt;&gt;<i> Modified: mgatools/trunk/clean-rpmsrate
</I>&gt;&gt;<i> ===================================================================
</I>&gt;&gt;<i> --- mgatools/trunk/clean-rpmsrate &#160; &#160; 2012-03-15 19:13:00 UTC (rev 3525)
</I>&gt;&gt;<i> +++ mgatools/trunk/clean-rpmsrate &#160; &#160; 2012-03-15 19:13:03 UTC (rev 3526)
</I>&gt;&gt;<i> @@ -18,6 +18,9 @@
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> &#160;my %rpm;
</I>&gt;&gt;<i> &#160;foreach my $dir (@ARGV) {
</I>&gt;&gt;<i> - &#160; &#160;$rpm{$dir} = [ map { s!$dir/?(.*)\.rpm$!$1!; $_ } glob &quot;$dir/*.rpm&quot; ];
</I>&gt;&gt;<i> + &#160; &#160;chdir($dir);
</I>&gt;&gt;<i> + &#160; &#160;$rpm{$dir} = [ map { s!(.*)\.rpm$!$1!; $_ } glob &quot;*.rpm&quot; ];
</I>&gt;<i>
</I>&gt;<i> What about &#160;s!\.rpm$!! ?
</I>
Indeed we can simplify further :-)
</PRE>










































<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="013122.html">[Mageia-dev] [soft-commits] [3526] make clean-rpmsrate 11. 5% faster on average on cached repo directory by
</A></li>
	<LI>Next message: <A HREF="013127.html">[Mageia-dev] Mageia 2 Beta 2 is available
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#13124">[ date ]</a>
              <a href="thread.html#13124">[ thread ]</a>
              <a href="subject.html#13124">[ subject ]</a>
              <a href="author.html#13124">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>