Mailinglist Archive: zypp-devel (84 mails)
| < Previous | Next > |
Re: [zypp-devel] zypper can't remove NEVR packages
- From: "Lorenzo Villani" <lvillani@xxxxxxxxxxxxxxx>
- Date: Fri, 8 Aug 2008 14:19:23 +0200
- Message-id: <f5252a90808080519r20f6417ar870a54e2077eec5c@xxxxxxxxxxxxxx>
On Fri, Aug 8, 2008 at 2:02 PM, Michael Andres <ma@xxxxxxx> wrote:
zypper and libzypp source code (heh, I have no experience with their
codebase)
determine the latest version of a package in such cases, example:
openafs-1.4.1rc9-rhel4.4
openafs-1.4.1-rhel4.5
The solution in this case is to add an Epoch: 1 to the SPEC file. Of
course a better solution is to add an Obsoletes tag but many, many
packages in Fedora use Epoch for "historical" reasons.
Regards
--
Lorenzo Villani
Blog: http://blog.binaryhelix.net
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
target/rpm/RpmDb.ccYes, I cam to the same function after digging for 1/2 Hour in both
void RpmDb::removePackage( Package::constPtr package, unsigned flags )
{
return removePackage( package->name()
+ "-" + package->edition().asString()
+ "." + package->arch().asString(), flags );
}
zypper and libzypp source code (heh, I have no experience with their
codebase)
Right, I'm making a patch for fedora which removes the epoch part.
I suppose rpm dislikes the epoch in edition().asString(): '5:1.8.5-1'
BTW: In case 2 versionsAFAIK, the purpose of the Epoch number is to allow solvers to
4:1.8.5-1
5:1.8.5-1
were installed at the same time, would it be possible ot remove just one
of them with rpm?
determine the latest version of a package in such cases, example:
openafs-1.4.1rc9-rhel4.4
openafs-1.4.1-rhel4.5
The solution in this case is to add an Epoch: 1 to the SPEC file. Of
course a better solution is to add an Obsoletes tag but many, many
packages in Fedora use Epoch for "historical" reasons.
Regards
--
Lorenzo Villani
Blog: http://blog.binaryhelix.net
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |