[Yum] code cleanup: one function in one source: readHeader
seth vidal
skvidal at phy.duke.edu
Sun Jul 21 20:05:48 UTC 2002
On Sun, 2002-07-21 at 16:02, seth vidal wrote:
> >
> > I offer to allocate the common functions in a separate module.
> >
> > package.py, rpmStuff.py, pkgStuff.py, pkg_tools.py...
> >
> > I do not know, I like all these names;-)
>
>
> Thats fine w/me - two prerequisites:
>
> 1. no classes. make it all procedural for now.
> 2. comment the code heavily.
one more thing - it would probably be most useful if the functions got
broken out into:
rpmUtils.py, hdrUtils.py and sysUtils.py
they being, respectively, stuff to manipulate rpms, stuff to manipulate
the headers and/or info in the headers (ie ver comparison) and generic
stuff to mkdirs/find stuff on the system.
-sv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/yum/attachments/20020721/4e455ef9/attachment-0001.pgp
More information about the Yum
mailing list