The following commit has been merged in the master branch:
commit 104882f7fef02d53e1b868e746b8e9ff313eb1f5
Author: Guillem Jover <guil...@debian.org>
Date:   Tue May 24 06:55:34 2011 +0200

    libdpkg: Do not fail on current file removal in trk_explicit_interest_change
    
    In case the new trigger interest file is empty and as such not needed
    any longer, do not fail if the current file is not present.
    
    Regression introduced in commit 83b591340ec92cf0e9814e8403da7711cbbc6b46.

diff --git a/lib/dpkg/triglib.c b/lib/dpkg/triglib.c
index 2a1cc36..81619fc 100644
--- a/lib/dpkg/triglib.c
+++ b/lib/dpkg/triglib.c
@@ -430,7 +430,7 @@ trk_explicit_interest_remove(const char *newfilename)
 {
        if (unlink(newfilename))
                ohshite(_("cannot remove `%.250s'"), newfilename);
-       if (unlink(trk_explicit_fn.buf))
+       if (unlink(trk_explicit_fn.buf) && errno != ENOENT)
                ohshite(_("cannot remove `%.250s'"), trk_explicit_fn.buf);
 }
 

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to debian-dpkg-cvs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to