diff options
Diffstat (limited to 'apt-pkg/contrib/strutl.cc')
-rw-r--r-- | apt-pkg/contrib/strutl.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc index 072dda3ac..a452f65f3 100644 --- a/apt-pkg/contrib/strutl.cc +++ b/apt-pkg/contrib/strutl.cc @@ -442,6 +442,7 @@ std::string OutputInDepth(const unsigned long Depth, const char* Separator) string URItoFileName(const string &URI) { // Nuke 'sensitive' items + //std::cerr << "\n>>>>URItoFileName():\n URI: " << URI << std::endl; ::URI U(URI); U.User.clear(); U.Password.clear(); @@ -450,6 +451,7 @@ string URItoFileName(const string &URI) // "\x00-\x20{}|\\\\^\\[\\]<>\"\x7F-\xFF"; string NewURI = QuoteString(U,"\\|{}[]<>\"^~_=!@#$%^&*"); replace(NewURI.begin(),NewURI.end(),'/','_'); + //std::cerr << " NewUri: " << NewURI << std::endl; return NewURI; } /*}}}*/ @@ -723,6 +725,7 @@ string TimeRFC1123(time_t Date) */ bool ReadMessages(int Fd, vector<string> &List) { + //std::cerr << "ReadMessages() Reading from Fd " << Fd << std::endl; char Buffer[64000]; char *End = Buffer; // Represents any left-over from the previous iteration of the @@ -765,6 +768,7 @@ bool ReadMessages(int Fd, vector<string> &List) I = Buffer; List.push_back(PartialMessage); + //std::cerr << " pushed back message:" << PartialMessage << std::endl; PartialMessage.clear(); } if (End != Buffer) @@ -790,7 +794,7 @@ bool ReadMessages(int Fd, vector<string> &List) // -- dburrows 2008-04-02 return true; } - + //std::cerr << " calling WaidFd again." << std::endl; if (WaitFd(Fd) == false) return false; } |