[Pkg-gtkpod-devel] Bug#840931: Stale pairing records may be left

Tino Mettler tino+debbugs at tikei.de
Tue Jan 10 14:04:03 UTC 2017


On Mon, Jan 09, 2017 at 15:34:46 +0100, Tino Mettler wrote:

> I suggest a least a NEWS entry instructing the user how to remove old
> pairing entries. We could also try to check for broken pairing entries
> in an automated way. I'll check if I can reproduce the problem and cook
> up a script.

Hi,

a broken pairing entry in /var/lib/lockdown contains this, as expected:

        <key>DeviceCertificate</key>
        <data>
        </data>

The DeviceCertificate contains no data in case of a broken entry. This
should be easy to detect. Here is an example using xmlstarlet:

if test -z $(xmlstarlet sel -t -v '//key[.="DeviceCertificate"]/following-sibling::data[1]'
74f06bdcba12be895b317ff02107cf4f15b8b0d0.plist) ; then
	rm foo.plist
fi

This would require a dependency to xmlstarlet, though.

Regards,
Tino



More information about the Pkg-gtkpod-devel mailing list