Am Freitag, 31.10.03 um 06:01 Uhr schrieb Michael G Schwern:
I'm looking at the $item arrayref in real_install() and trying toStrange
figure out what each element represents. I've noticed something
interesting. $item->[1] ($pkgobj from Fink::Package->package_by_name) is
never used.
I've replaced all the $item->[#] calls with constants. At the moment theI don't have the source in front of me right now, and I have to run to Uni now, but roughly, the first method should return a "Package" object, the other a "PkgVersion" object. The difference: a "Package" represents a whole package with all its version; e.g. "dpkg" or "emacs21" or even the "fink" package. A PkgVersion on the other hand means a specific version of such a package, e.g. "dpkg-1.10.9-14". This is so because there might be multiple versions of a package around (from multiple .info files; and from multiple .deb files).
names are pretty bland. PKGNAME, PKGOBJ, PACKAGE, OP and FLAG. I don't
really know what these things are, particularly OP and FLAG. I also
don't know what the different (if any) is between PACKAGE and PKGOBJ.
The former comes from Fink::PkgVersion->match_package() the latter from
Fink::Package->package_by_name(). PACKAGE looks like its a PkgVersion
object maybe?
Could someone explain?
Cheers,
Max
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel
