diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-07-22 15:59:50 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-07-22 15:59:50 +0200 |
commit | be5b558134ade780e11f50dede99d041a1defd7f (patch) | |
tree | a3550ad268d3fbdcf5f0c1dd21716c9c1355bb7f /apt-pkg/cdrom.cc | |
parent | cbc9bed8ae85af36ad8579476ab91e89c3cd310e (diff) | |
download | apt-be5b558134ade780e11f50dede99d041a1defd7f.tar.gz |
apt-pkg/cdrom.cc: make cdrom.Mounted property reliable
Diffstat (limited to 'apt-pkg/cdrom.cc')
-rw-r--r-- | apt-pkg/cdrom.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/cdrom.cc b/apt-pkg/cdrom.cc index 087ee321..517efa18 100644 --- a/apt-pkg/cdrom.cc +++ b/apt-pkg/cdrom.cc @@ -908,7 +908,8 @@ pkgUdevCdromDevices::Scan() cdrom.DeviceName = string(devnode); if (mountpath) { cdrom.MountPath = mountpath; - cdrom.Mounted = true; + string s = string(mountpath); + cdrom.Mounted = IsMounted(s); } else { cdrom.Mounted = false; cdrom.MountPath = ""; |