summaryrefslogtreecommitdiff
path: root/apt-pkg/sourcelist.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-08-01 11:00:43 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-08-01 11:00:43 +0200
commit4ba571fa1ba7349960a44e4a4738c09b5b94ca30 (patch)
tree84247d988551660626f72579db427ece802b91ab /apt-pkg/sourcelist.cc
parent6d44a9155b29e3d42fdcf483637d73668f7a43c2 (diff)
parent5e7b0aa9eb884f663c3a87968057d9f540fe0175 (diff)
merged from debian-experimental2
Diffstat (limited to 'apt-pkg/sourcelist.cc')
-rw-r--r--apt-pkg/sourcelist.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/apt-pkg/sourcelist.cc b/apt-pkg/sourcelist.cc
index c96ccfd77..aaff16316 100644
--- a/apt-pkg/sourcelist.cc
+++ b/apt-pkg/sourcelist.cc
@@ -346,10 +346,14 @@ bool pkgSourceList::ReadSourceDir(string Dir)
/* */
time_t pkgSourceList::GetLastModifiedTime()
{
- // go over the parts
+ vector<string> List;
+
string Main = _config->FindFile("Dir::Etc::sourcelist");
string Parts = _config->FindDir("Dir::Etc::sourceparts");
- vector<string> const List = GetListOfFilesInDir(Parts, "list", true);
+
+ // go over the parts
+ if (DirectoryExists(Parts) == true)
+ List = GetListOfFilesInDir(Parts, "list", true);
// calculate the time
time_t mtime_sources = GetModificationTime(Main);