|
@@ -1589,11 +1589,11 @@ class FetchMethod(object):
|
|
|
datafile = None
|
|
|
if output:
|
|
|
for line in output.decode().splitlines():
|
|
|
- if line.startswith('data.tar.'):
|
|
|
+ if line.startswith('data.tar.') or line == 'data.tar':
|
|
|
datafile = line
|
|
|
break
|
|
|
else:
|
|
|
- raise UnpackError("Unable to unpack deb/ipk package - does not contain data.tar.* file", urldata.url)
|
|
|
+ raise UnpackError("Unable to unpack deb/ipk package - does not contain data.tar* file", urldata.url)
|
|
|
else:
|
|
|
raise UnpackError("Unable to unpack deb/ipk package - could not list contents", urldata.url)
|
|
|
cmd = 'ar x %s %s && %s -p -f %s && rm %s' % (file, datafile, tar_cmd, datafile, datafile)
|