]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/cdrom.cc
Readd the FindPkg() method implementation used in the singleArch days to
[apt.git] / apt-pkg / cdrom.cc
index 271bca409884596efb18b71e433b750c0f9bee2e..83165c6c012966646188793c4abd7a1d14d3e1b1 100644 (file)
@@ -821,8 +821,6 @@ bool pkgCdrom::Add(pkgCdromStatus *log)                                     /*{{{*/
       }
    }
 
-   
-
    // Unmount and finish
    if (_config->FindB("APT::CDROM::NoMount",false) == false) {
       log->Update(_("Unmounting CD-ROM...\n"), STEP_LAST);
@@ -913,6 +911,7 @@ pkgUdevCdromDevices::Scan()                                             /*{{{*/
 
 pkgUdevCdromDevices::~pkgUdevCdromDevices()                             /*{{{*/
 { 
-   dlclose(libudev_handle);
+   if (libudev_handle != NULL)
+      dlclose(libudev_handle);
 }
                                                                        /*}}}*/