Mailinglist Archive: zypp-devel (84 mails)
| < Previous | Next > |
Re: [zypp-devel] zypper can't remove NEVR packages
- From: Michael Andres <ma@xxxxxxx>
- Date: Fri, 8 Aug 2008 14:23:43 +0200
- Message-id: <20080808122343.GA13791@xxxxxxx>
On Fri, Aug 08, Lorenzo Villani wrote:
I see.
The bug is fixed in SVN for 11.0 and TRUNK.
http://svn.opensuse.org/svn/zypp/trunk/libzypp
http://svn.opensuse.org/svn/zypp/branches/SuSE-Linux-11_0-Branch/libzypp
--
cu,
Michael Andres
+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres YaST Development ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
On Fri, Aug 8, 2008 at 2:02 PM, Michael Andres <ma@xxxxxxx> wrote:
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.
I see.
The bug is fixed in SVN for 11.0 and TRUNK.
http://svn.opensuse.org/svn/zypp/trunk/libzypp
http://svn.opensuse.org/svn/zypp/branches/SuSE-Linux-11_0-Branch/libzypp
--
cu,
Michael Andres
+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres YaST Development ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |