Merge lp:~darkxst/ppa-purge/multiarch-lp892886 into lp:ppa-purge
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Merged at revision: | 57 | ||||
| Proposed branch: | lp:~darkxst/ppa-purge/multiarch-lp892886 | ||||
| Merge into: | lp:ppa-purge | ||||
| Diff against target: |
63 lines (+23/-4) 3 files modified
debian/changelog (+6/-0) debian/control (+1/-1) ppa-purge (+16/-3) |
||||
| To merge this branch: | bzr merge lp:~darkxst/ppa-purge/multiarch-lp892886 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Robert Hooker | Approve on 2012-11-27 | ||
| Tormod Volden | 2012-11-15 | Approve on 2012-11-21 | |
|
Review via email:
|
|||
Description of the Change
uses dpkg-query to extract the actual multiarch package names (where applicable). This lets ppa-purge work correctly on multiarch systems.
| Tormod Volden (tormodvolden) wrote : | # |
| Tim (darkxst) wrote : | # |
I will check tomorrow if I can strengthen the regex.
However dpkg-query is a core part of dpkg (i.e. what handles dpkg -l package), so no extra dependency should be needed.
| Tormod Volden (tormodvolden) wrote : | # |
Something like /\tii$/ should be enough since you use a "\t" in your -f string.
I was thinking of a /versioned/ dependency, since the -f format parameters you are using are not supported in older dpkg. This would break backports of ppa-purge.
| Tim (darkxst) wrote : | # |
Added a dependency on the correct version of dpkg, turns out the required format fields are only available in Quantal and Raring
| Tim (darkxst) wrote : | # |
The following provides a similar result on Precise, perhaps we should fallback to that if the current dpkg-query fails.
-f='${PackageSp
| Tim (darkxst) wrote : | # |
r59 and r60 correctly generate the package revert list on multiarch Precise. It may work with apt-get however aptitude is completely broken on Precise with respect to multiarch dependency resolution (LP: #831768). Also its probably not ideal hardcoding the foreign arch, but I couldnt work out how to get this info under precise.
So probably best to just merge r57+r58 for now, which atleast cover Q and R
| Tim (darkxst) wrote : | # |
Cleaned up a bit and tested on precise with the patched aptitude (LP: 831768) that is awaiting upload for SRU. In combination with that patch, this is now working perfectly.
| Tormod Volden (tormodvolden) wrote : | # |
Awesome! What about a versioned dependency on this aptitude package?
You may also delete the ARCH variable at the same time since it is not used.
| Tim (darkxst) wrote : | # |
ok done.
| Tormod Volden (tormodvolden) wrote : | # |
From looking at http://
I would love to see a fallback that works in 10.04 as well, but that can be added later. It is more important to get this version out soon.
| Tormod Volden (tormodvolden) wrote : | # |
But then for natty and oneiric we would need backports of that aptitude package as well...
I have neither multiarch fu nor a multiarch system to test on, but otherwise this looks good to me.
| Tim (darkxst) wrote : | # |
Yes, would need to get the aptitude patch backported to get it working on natty and oneiric.
| Robert Hooker (sarvatt) wrote : | # |
Ok I just checked it out and this works, but there is a problem in that packages that only existed in the PPA and not in the distro do not get removed which makes it not work with xorg-edgers thanks to libdrm-nouveau2 in precise. That's a problem for another day though and this does work for most use cases :) Thanks for this Tim! I'm not able to upload it so I subscribed the sponsors team to the bug.

Thanks for this! I would maybe had strengthened the /ii/ regex to prevent matching on some unfortunate package name.
Can you please also add a package dependency on whatever version of dpkg-query is needed for this?