This is the mail archive of the cygwin-apps mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RFC: [PATCH] Simplify installed.db format


The current format for installed.db is (except the first line)


which setup tries to parse as

package-name filename filesize src-filename srcsize

(with src-filename and srcsize never used, and the filesize field never
accessed).  I propose to remove the unused fields, with the intention of
later reusing the (always 0) for something else.

The attached patch fixes the parsing of installed.db package lines.
Comments welcome.
2006-01-22  Igor Peshansky  <>

	* cygpackage.h (filesize): Remove unused field.
	* (cygpackage::createInstance): Ditto.
	* (packagedb::packagedb): Remove unused variables.
	Simplify parsing of installed.db.

      |\      _,,,---,,_ |
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

Attachment: setup-installed.db-parse.patch
Description: Text document

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]