[Yum] Gziped headers patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--=-kvyvUX69+ETJdGUlV700
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sat, 2002-06-15 at 11:35, Grigory Bakunov wrote:
> Hello.
> I make a little patch to work with gziped headers for yum.
> patch attached.
>=20
> also i found another silly bug

thanks for the catch on the dumb bug.

about the gzip headers patch. I think I want to do 2 things differently.

1. I think -z would be a better command arg than -C - just to decrease
confusion. That seem ok?

2. I think adding YUM1 is just going to cause other levels of confusion.
So we can support both compressed and uncompressed headers how about
having a "yumheaders" dir and a "headers" dir. Alternatively we could
differentiate in the header file name  instead of: pkg-e-v-r.arch.hdr
have it be pkg-e-v-r.arch.zhdr

Then, you could have both types of headers in the headers/ dir on the
server and have a headers.info and/or a zheaders.info file.


In fact, that might be the easiest way. Create both compressed and
uncompressed by default (and it wouldn't take too long b/c other than
duke there are probably not many folks using it :) Just make a different
headers.info file and an attempt a getting of both when you first grab
the headers info file in yummain.get_package_info_from_servers(). If you
find zheaders, use it, if you don't then fall back to uncompressed
headers.


That way we're not adding anything to the rpm header.
I'm not certain but, I don't think the header will load properly with
YUM1 prepended to it. though it would be worth testing.


Thanks for the patch. That should work well (you even patched the man
page :)


>=20
> [root@black etc]# [root@black headers]# yum remove sane
> Gathering package information from servers
> Getting headers from: 7.3 main
> Finding updated packages
> Downloading needed headers
> Finding obsoleted packages
> Traceback (innermost last):
>   File "/usr/sbin/yum", line 24, in ?
>     yummain.main()
>   File "yummain.py", line 266, in main
>   File "yummain.py", line 115, in take_action
>   File "pkgaction.py", line 152, in erasepkgs
> NameError: errolog

fixed.=20

-sv


--=-kvyvUX69+ETJdGUlV700
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA9C6+u1Aj3x2mIbMcRAhM/AJ4itQSr5bZe79ewqcXDJ0WneGxuewCfat1Y
np1bsFkhP0k614c2mqhwLWc=
=UFPY
-----END PGP SIGNATURE-----

--=-kvyvUX69+ETJdGUlV700--



[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux