Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
apt
apt-0.5.15lorg3.x-archremove.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File apt-0.5.15lorg3.x-archremove.patch of Package apt
Index: apt-pkg/rpm/rpmpm.cc =================================================================== --- apt-pkg/rpm/rpmpm.cc (revision 247) +++ apt-pkg/rpm/rpmpm.cc (revision 248) @@ -260,7 +260,6 @@ for (vector<Item>::iterator I = List.begin(); I != List.end(); I++) { string Name = I->Pkg.Name(); - string Arch = ""; string RealName = Name; string::size_type loc; @@ -269,14 +268,16 @@ case Item::Purge: case Item::Remove: // Unmunge our package names so rpm can find them... - Arch = I->Pkg.CurrentVer().Arch(); if ((loc = Name.rfind(".32bit", Name.length())) != string::npos) { - RealName = Name.substr(0,loc) + "." + Arch; + RealName = Name.substr(0,loc); } else if ((loc = Name.rfind("#", Name.length())) != string::npos) { - RealName = Name.substr(0,loc) + "-" + I->Pkg.CurrentVer().VerStr() + "." + Arch; - } else { - RealName = Name + "." + Arch; + RealName = Name.substr(0,loc) + "-" + I->Pkg.CurrentVer().VerStr(); } +#if RPM_VERSION >= 0x040202 + // This is needed for removal to work on multilib packages, but old + // rpm versions don't support name.arch in RPMDBI_LABEL, oh well... + RealName = RealName + "." + I->Pkg.CurrentVer().Arch(); +#endif uninstall.push_back(strdup(RealName.c_str())); unalloc.push_back(strdup(RealName.c_str())); pkgs_uninstall.push_back(I->Pkg);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor