HCoop
/
ntk
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merged -r 1923..1926 from lp:~donkult/apt/sid
[ntk/apt.git]
/
apt-pkg
/
deb
/
debsrcrecords.cc
diff --git
a/apt-pkg/deb/debsrcrecords.cc
b/apt-pkg/deb/debsrcrecords.cc
index
2f87c76
..
bde10aa
100644
(file)
--- a/
apt-pkg/deb/debsrcrecords.cc
+++ b/
apt-pkg/deb/debsrcrecords.cc
@@
-135,9
+135,15
@@
bool debSrcRecordParser::Files(vector<pkgSrcRecords::File> &List)
string::size_type Tmp = F.Path.rfind('.',Pos);
if (Tmp == string::npos)
break;
string::size_type Tmp = F.Path.rfind('.',Pos);
if (Tmp == string::npos)
break;
+ if (F.Type == "tar") {
+ // source v3 has extension 'debian.tar.*' instead of 'diff.*'
+ if (string(F.Path, Tmp+1, Pos-Tmp) == "debian")
+ F.Type = "diff";
+ break;
+ }
F.Type = string(F.Path,Tmp+1,Pos-Tmp);
F.Type = string(F.Path,Tmp+1,Pos-Tmp);
- if (F.Type == "gz" || F.Type == "bz2" || F.Type == "lzma")
+ if (F.Type == "gz" || F.Type == "bz2" || F.Type == "lzma"
|| F.Type == "tar"
)
{
Pos = Tmp-1;
continue;
{
Pos = Tmp-1;
continue;