summaryrefslogtreecommitdiff
path: root/cmdline
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 /cmdline
parenta49e7948029d8219d7cb182fbc1b0adb587691b8 (diff)
add support for apt-get build-dep unpacked-source-dir
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 5418c351b..6d6ba5ff9 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -1055,8 +1055,17 @@ static bool DoBuildDep(CommandLine &CmdL)
string Src;
pkgSrcRecords::Parser *Last = 0;
+ // a unpacked debian source tree
+ if (DirectoryExists(*I))
+ {
+ // FIXME: how can we make this more elegant?
+ std::string TypeName = "debian/control File Source Index";
+ pkgIndexFile::Type *Type = pkgIndexFile::Type::GetType(TypeName.c_str());
+ if(Type != NULL)
+ Last = Type->CreateSrcPkgParser(*I);
+ }
// if its a local file (e.g. .dsc) use this
- if (FileExists(*I))
+ else if (FileExists(*I))
{
// see if we can get a parser for this pkgIndexFile type
string TypeName = flExtension(*I) + " File Source Index";