diff options
author | Ishan Jayawardena <udeshike@gmail.com> | 2011-07-16 14:41:53 +0530 |
---|---|---|
committer | Ishan Jayawardena <udeshike@gmail.com> | 2011-07-16 14:41:53 +0530 |
commit | 8a8ea4baa11f07e1de4cf190f82dbd79ff1affa5 (patch) | |
tree | f8710b0994c439f46e75c8f28af0f6b8251f380c /apt-pkg/acquire-method.cc | |
parent | 3efe86af099d5a5d05e2e61a571da864676834c7 (diff) | |
parent | 0df8c3dccbda739af6e20999fb208ada0619ad80 (diff) |
fixed indentation issues
Diffstat (limited to 'apt-pkg/acquire-method.cc')
-rw-r--r-- | apt-pkg/acquire-method.cc | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/apt-pkg/acquire-method.cc b/apt-pkg/acquire-method.cc index eb1e003c2..e9e102488 100644 --- a/apt-pkg/acquire-method.cc +++ b/apt-pkg/acquire-method.cc @@ -323,12 +323,13 @@ int pkgAcqMethod::Run(bool Single) if (Single == true && Messages.empty() == true) return -1; - string m = Messages.front(); + string Message = Messages.front(); Messages.erase(Messages.begin()); + // Fetch the message number char *End; - int Number = strtol(m.c_str(),&End,10); - if (End == m.c_str()) + int Number = strtol(Message.c_str(),&End,10); + if (End == Message.c_str()) { cerr << "Malformed message!" << endl; return 100; @@ -337,19 +338,20 @@ int pkgAcqMethod::Run(bool Single) switch (Number) { case 601: - if (Configuration(m) == false) - return 100; + if (Configuration(Message) == false) + return 100; break; case 600: { FetchItem *Tmp = new FetchItem; - Tmp->Uri = LookupTag(m,"URI"); - Tmp->DestFile = LookupTag(m,"FileName"); - if (RFC1123StrToTime(LookupTag(m,"Last-Modified").c_str(),Tmp->LastModified) == false) + + Tmp->Uri = LookupTag(Message,"URI"); + Tmp->DestFile = LookupTag(Message,"FileName"); + if (RFC1123StrToTime(LookupTag(Message,"Last-Modified").c_str(),Tmp->LastModified) == false) Tmp->LastModified = 0; - Tmp->IndexFile = StringToBool(LookupTag(m,"Index-File"),false); - Tmp->FailIgnore = StringToBool(LookupTag(m,"Fail-Ignore"),false); + Tmp->IndexFile = StringToBool(LookupTag(Message,"Index-File"),false); + Tmp->FailIgnore = StringToBool(LookupTag(Message,"Fail-Ignore"),false); Tmp->Next = 0; // Append it to the list |