1 |
slords |
1.1 |
diff -uNr yum-plugin-installonlyn-0.91/installonlyn.conf yum-plugin-installonlyn-0.91.patch/installonlyn.conf |
2 |
|
|
--- yum-plugin-installonlyn-0.91/installonlyn.conf 2007-05-23 14:29:34.000000000 -0600 |
3 |
|
|
+++ yum-plugin-installonlyn-0.91.patch/installonlyn.conf 2008-03-26 23:17:25.000000000 -0600 |
4 |
|
|
@@ -1,3 +1,3 @@ |
5 |
|
|
[main] |
6 |
|
|
enabled=1 |
7 |
|
|
-tokeep=2 |
8 |
|
|
+tokeep=5 |
9 |
slords |
1.2 |
--- yum-plugin-installonlyn-0.91/installonlyn.py.sme 2007-05-23 14:29:34.000000000 -0600 |
10 |
|
|
+++ yum-plugin-installonlyn-0.91/installonlyn.py 2008-03-29 14:25:17.000000000 -0600 |
11 |
|
|
@@ -64,9 +64,9 @@ |
12 |
|
|
for (n, a, e, v, r) in installed: |
13 |
|
|
if (v, r) == (curv, curr): # don't remove running |
14 |
|
|
continue |
15 |
|
|
- toremove.append(YumInstalledPackage(rpmdb.returnHeaderByTuple((n,a,e,v,r))[0])) |
16 |
|
|
- numleft -= 1 |
17 |
|
|
if numleft == 0: |
18 |
|
|
break |
19 |
|
|
+ toremove.append(YumInstalledPackage(rpmdb.returnHeaderByTuple((n,a,e,v,r))[0])) |
20 |
|
|
+ numleft -= 1 |
21 |
|
|
|
22 |
|
|
map(lambda x: ts.addErase(x), toremove) |