On Sun, Nov 18, 2007 at 13:31:04 -0500, Jeff Johnson wrote:

> So your expectation is that -e --repackage should also remove
> the package,

Yes.

> I believe (but rpm-4.4.2 was like 3+ years ago) that --repackage takes
> precedence over --erase.

No - every package always is erased when -e --repackage ...until I've
found these 3 libraries (and I've encountered the problem some time ago,
but didn't resolved it AFAIR). --repackage is just an option to create
archive of package BEING removed. E.g. (the same system):

#  rpm -q m4-static
m4-static-1.4q-2
#  rpm -v -e --repackage m4-static
Wrote: /var/spool/repackage/m4-static-1.4q-2.amd64.rpm
#  rpm -q m4-static
package m4-static is not installed

> I.e. any of the install/upgrade/erase mode  
> options
> will behave identically when --repackage is present, and repackaging  
> will
> be done but the other mode operation will not.

It will. It always did except for these rare exceptions on mulilib:

#  rpm -q libgcc4
libgcc4-4.1.2-4
libgcc4-4.1.2-4
#  rpm -q --qf "%{arch}\n" libgcc4
amd64
athlon
#  rpm -e  libgcc4-4.1.2-4
error: "libgcc4-4.1.2-4" specifies multiple packages
#  rpm -v -e libgcc4-4.1.2-4.athlon
Wrote: /var/spool/repackage/libgcc4-4.1.2-4.athlon.rpm
#  rpm -q libgcc4
libgcc4-4.1.2-4
#  rpm -q --qf "%{arch}\n" libgcc4
amd64

The athlon package has been removed. However:

#  rpm -v -e libgcc4-4.1.2-4.athlon
#  rpm -v -e adasd
error: package adasd is not installed

there's no error message:) So let's try different EVR:

#  rpm -q --qf "%{name}-%{version}-%{release}.%{arch}\n" libgadu
libgadu-1.7.0-1.amd64
libgadu-1.6-1.athlon
#  rpm -v -e libgadu
error: "libgadu" specifies multiple packages
#  rpm -v -e libgadu-1.6-1.athlon
Wrote: /var/spool/repackage/libgadu-1.6-1.athlon.rpm
#  rpm -q --qf "%{name}-%{version}-%{release}.%{arch}\n" libgadu
libgadu-1.7.0-1.amd64

-- 
Tomasz Pala <[EMAIL PROTECTED]>
_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to