summaryrefslogtreecommitdiff
path: root/apt-pkg/deb
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-04-25 09:47:50 +0200
committerMichael Vogt <mvo@debian.org>2014-04-25 10:01:01 +0200
commit77da39b95870498431fc21df65900acc5ce2f7ea (patch)
treead4136dfeeb75eb82d1309244a21cfd244a4f045 /apt-pkg/deb
parenta49e7948029d8219d7cb182fbc1b0adb587691b8 (diff)
add support for apt-get build-dep unpacked-source-dir
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r--apt-pkg/deb/debindexfile.cc14
-rw-r--r--apt-pkg/deb/debindexfile.h5
2 files changed, 19 insertions, 0 deletions
diff --git a/apt-pkg/deb/debindexfile.cc b/apt-pkg/deb/debindexfile.cc
index e7e764dd4..bb6884123 100644
--- a/apt-pkg/deb/debindexfile.cc
+++ b/apt-pkg/deb/debindexfile.cc
@@ -744,6 +744,15 @@ class debIFTypeDscFile : public pkgIndexFile::Type
};
debIFTypeDscFile() {Label = "dsc File Source Index";};
};
+class debIFTypeDebianSourceDir : public pkgIndexFile::Type
+{
+ public:
+ virtual pkgSrcRecords::Parser *CreateSrcPkgParser(std::string SourceDir) const
+ {
+ return new debDscRecordParser(SourceDir + string("/debian/control"), NULL);
+ };
+ debIFTypeDebianSourceDir() {Label = "debian/control File Source Index";};
+};
static debIFTypeSrc _apt_Src;
static debIFTypePkg _apt_Pkg;
@@ -751,6 +760,7 @@ static debIFTypeTrans _apt_Trans;
static debIFTypeStatus _apt_Status;
// file based pseudo indexes
static debIFTypeDscFile _apt_DscFile;
+static debIFTypeDebianSourceDir _apt_DebianSourceDir;
const pkgIndexFile::Type *debSourcesIndex::GetType() const
{
@@ -772,5 +782,9 @@ const pkgIndexFile::Type *debDscFileIndex::GetType() const
{
return &_apt_DscFile;
}
+const pkgIndexFile::Type *debDebianSourceDirIndex::GetType() const
+{
+ return &_apt_DebianSourceDir;
+}
/*}}}*/
diff --git a/apt-pkg/deb/debindexfile.h b/apt-pkg/deb/debindexfile.h
index 88abfdd9d..64ca558d2 100644
--- a/apt-pkg/deb/debindexfile.h
+++ b/apt-pkg/deb/debindexfile.h
@@ -182,4 +182,9 @@ class debDscFileIndex : public pkgIndexFile
virtual ~debDscFileIndex() {};
};
+class debDebianSourceDirIndex : public debDscFileIndex
+{
+ virtual const Type *GetType() const APT_CONST;
+};
+
#endif