]> git.saurik.com Git - apt.git/commitdiff
apt-pkg/contrib/cdromutl.cc: style fixes (thanks to David for his code-review)
authorMichael Vogt <michael.vogt@ubuntu.com>
Fri, 10 Sep 2010 11:43:32 +0000 (13:43 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Fri, 10 Sep 2010 11:43:32 +0000 (13:43 +0200)
apt-pkg/contrib/cdromutl.cc

index 129e4a9f602605914c68993fd219a3ed492854e3..9c00f94b5fc4dc2c93fda1d6ddc4fce0f896606e 100644 (file)
@@ -161,10 +161,10 @@ bool IdentCdrom(string CD,string &Res,unsigned int Version)
    // used like a cdrom don't use "." as it will constantly change,
    // use .disk instead
    if (access(CD.c_str(), W_OK) == 0 && DirectoryExists(CD+string("/.disk"))) {
-      CD = CD+string("/.disk");
+      CD = CD.append("/.disk");
       if (_config->FindB("Debug::aptcdrom",false) == true)
-         std::clog << "Found writable cdrom, using alternative path: "
-                   << CD.c_str() << std::endl;
+         std::clog << "Found writable cdrom, using alternative path: " << CD
+                   << std::endl;
    }
 
    string StartDir = SafeGetCWD();