summaryrefslogtreecommitdiffstats
path: root/patches/ipkg-utils-050831/0008-ipkg.py-don-t-use-wildcards.patch
blob: 452038a05756b61d327e8ed23ea325f31368c727 (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
From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: Fri, 22 Jan 2010 11:22:41 +0100
Subject: [PATCH] ipkg.py: don't use wildcards

it's not portable

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
 ipkg.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ipkg.py b/ipkg.py
index d6f7e69..02ca3e9 100644
--- a/ipkg.py
+++ b/ipkg.py
@@ -166,7 +166,7 @@ class Package:
         	except KeyError:
         	    control = tarf.extractfile("./control")
 	    else:
-		control = os.popen("tar --wildcards -xzO -f " + fn + " '*control.tar.gz' | tar xfzO - './control'", "r")
+		control = os.popen("tar -xzO -f " + fn + " './control.tar.gz' | tar xfzO - './control'", "r")
 
             self.read_control(control)
             control.close()
@@ -321,7 +321,7 @@ class Package:
     	    self.file_list = tarf.getnames()
     	    f.close()
 	else:
-            f = os.popen("tar xfzO " + self.fn + " '*data.tar.gz' | tar tfz -","r") 
+            f = os.popen("tar xfzO " + self.fn + " './data.tar.gz' | tar tfz -","r")
             while 1: 
                 line = f.readline() 
                 if not line: break