|
@@ -908,7 +908,8 @@ pkgUdevCdromDevices::Scan()
|
|
|
cdrom.DeviceName = string(devnode);
|
|
cdrom.DeviceName = string(devnode);
|
|
|
if (mountpath) {
|
|
if (mountpath) {
|
|
|
cdrom.MountPath = mountpath;
|
|
cdrom.MountPath = mountpath;
|
|
|
- cdrom.Mounted = true;
|
|
|
|
|
|
|
+ string s = string(mountpath);
|
|
|
|
|
+ cdrom.Mounted = IsMounted(s);
|
|
|
} else {
|
|
} else {
|
|
|
cdrom.Mounted = false;
|
|
cdrom.Mounted = false;
|
|
|
cdrom.MountPath = "";
|
|
cdrom.MountPath = "";
|