summaryrefslogtreecommitdiff
path: root/cmdline/apt-cdrom.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:51:51 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:51:51 +0000
commitac49a1e5b9b1ac67d66de25072a5a197432bece3 (patch)
treedcdd815c645dbfbdcec79b7fe8b6c40f34e27372 /cmdline/apt-cdrom.cc
parent018f15333c0b24232f771a675fc2b4c8cb5fe799 (diff)
Small cosmetic fixes
Author: jgg Date: 1998-12-04 23:33:17 GMT Small cosmetic fixes
Diffstat (limited to 'cmdline/apt-cdrom.cc')
-rw-r--r--cmdline/apt-cdrom.cc15
1 files changed, 13 insertions, 2 deletions
diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc
index 5a0ace8b6..1985c22a6 100644
--- a/cmdline/apt-cdrom.cc
+++ b/cmdline/apt-cdrom.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-cdrom.cc,v 1.6 1998/11/29 01:19:20 jgg Exp $
+// $Id: apt-cdrom.cc,v 1.7 1998/12/04 23:33:18 jgg Exp $
/* ######################################################################
APT CDROM - Tool for handling APT's CDROM database.
@@ -791,8 +791,11 @@ bool DoAdd(CommandLine &)
{
// Startup
string CDROM = _config->FindDir("Acquire::cdrom::mount","/cdrom/");
- cout << "Using CD-ROM mount point " << CDROM << endl;
+ if (CDROM[0] == '.')
+ CDROM= SafeGetCWD() + '/' + CDROM;
+ cout << "Using CD-ROM mount point " << CDROM << endl;
+
// Read the database
Configuration Database;
string DFile = _config->FindFile("Dir::State::cdroms");
@@ -823,7 +826,11 @@ bool DoAdd(CommandLine &)
cout << "Identifying.. " << flush;
string ID;
if (IdentCdrom(CDROM,ID) == false)
+ {
+ cout << endl;
return false;
+ }
+
cout << '[' << ID << ']' << endl;
cout << "Scanning Disc for index files.. " << flush;
@@ -831,7 +838,11 @@ bool DoAdd(CommandLine &)
vector<string> List;
string StartDir = SafeGetCWD();
if (FindPackages(CDROM,List) == false)
+ {
+ cout << endl;
return false;
+ }
+
chdir(StartDir.c_str());
if (_config->FindB("Debug::aptcdrom",false) == true)