[Bug 493582] Re: [lucid] libvirt-bin fails to install (sed: can't read /etc/apparmor.d/usr.bin.virt-aa-helper)

2009-12-07 Thread Thierry Carrez
I think the following postinst snippet should check for -n $2 before
comparing, so that it doesn't fail in the first install case:

--
old_profile=/etc/apparmor.d/usr.bin.virt-aa-helper
new_profile=/etc/apparmor.d/usr.lib.libvirt.virt-aa-helper
if dpkg --compare-versions $2 le 0.7.0-1ubuntu15; then
sed -i s#/usr/bin/virt-aa-helper#/usr/lib/libvirt/virt-aa-helper#g 
$old_profile
--

** Changed in: libvirt (Ubuntu)
   Importance: Undecided = High

** Changed in: libvirt (Ubuntu)
   Status: New = Triaged

** Also affects: libvirt (Ubuntu Lucid)
   Importance: High
   Status: Triaged

-- 
[lucid] libvirt-bin fails to install (sed: can't read 
/etc/apparmor.d/usr.bin.virt-aa-helper)
https://bugs.launchpad.net/bugs/493582
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 493582] Re: [lucid] libvirt-bin fails to install (sed: can't read /etc/apparmor.d/usr.bin.virt-aa-helper)

2009-12-07 Thread Jamie Strandboge
** Changed in: libvirt (Ubuntu Lucid)
 Assignee: (unassigned) = Jamie Strandboge (jdstrand)

-- 
[lucid] libvirt-bin fails to install (sed: can't read 
/etc/apparmor.d/usr.bin.virt-aa-helper)
https://bugs.launchpad.net/bugs/493582
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 493582] Re: [lucid] libvirt-bin fails to install (sed: can't read /etc/apparmor.d/usr.bin.virt-aa-helper)

2009-12-07 Thread Colin Watson
Instead of -n $2, just use the le-nl operator in place of le.

-- 
[lucid] libvirt-bin fails to install (sed: can't read 
/etc/apparmor.d/usr.bin.virt-aa-helper)
https://bugs.launchpad.net/bugs/493582
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 493582] Re: [lucid] libvirt-bin fails to install (sed: can't read /etc/apparmor.d/usr.bin.virt-aa-helper)

2009-12-07 Thread Launchpad Bug Tracker
This bug was fixed in the package libvirt - 0.7.2-4ubuntu4

---
libvirt (0.7.2-4ubuntu4) lucid; urgency=low

  * debian/libvirt-bin.postinst: don't sed a non-existent file (LP: #493582)
 -- Jamie Strandboge ja...@ubuntu.com   Mon, 07 Dec 2009 08:55:03 -0600

** Changed in: libvirt (Ubuntu Lucid)
   Status: Triaged = Fix Released

-- 
[lucid] libvirt-bin fails to install (sed: can't read 
/etc/apparmor.d/usr.bin.virt-aa-helper)
https://bugs.launchpad.net/bugs/493582
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs