diff options
author | Ian Jackson <ian@chiark.chu.cam.ac.uk> | 1996-08-20 15:39:58 +0100 |
---|---|---|
committer | Ian Jackson <ian@chiark.chu.cam.ac.uk> | 1996-08-20 15:39:58 +0100 |
commit | 19f08301e30c28f3130a171b631d4e7a540e1697 (patch) | |
tree | 776f1c12e5adc5c14efea7e2378e9ed9bf0ce78a /lib | |
parent | 22ae3bb28c3a2faaf0f4aea57ac8bd245dd36af9 (diff) | |
download | dpkg-19f08301e30c28f3130a171b631d4e7a540e1697.tar.gz |
dpkg (1.3.6) experimental; urgency=low (HIGH for new source format)
* dpkg-source now has broken argument unparsing for tar. (Bug#4195.)
* dpkg-gencontrol writes to debian/tmp/DEBIAN/control by default.
* dpkg-shlibdeps script added.
* Back to old sh update-rc.d, and removed manpage, because new Perl
version and the manpage have different syntax and semantics.
* update-rc.d prints usage message for missing terminal `.'. (Bug#4122.)
* Use rm -rf instead of just rm -r in dpkg-deb --info &c. (Bug#4200.)
* Added support for Installed-Size to dpkg-gencontrol, and documented.
* Source packaging substitution variables and name syntax rationalised.
* dpkg-source scripts' usage messages improved slightly.
* dpkg-source works with non-empty second (orig dir) argument.
* Added rationale for copyright policy to manual.
* More developers' PGP keys.
* Control database handling cleanups (usu. Source field blanked).
-- Ian Jackson <ian@chiark.chu.cam.ac.uk> Tue, 20 Aug 1996 15:39:58 +0100
Diffstat (limited to 'lib')
-rw-r--r-- | lib/database.c | 3 | ||||
-rw-r--r-- | lib/parse.c | 51 |
2 files changed, 28 insertions, 26 deletions
diff --git a/lib/database.c b/lib/database.c index 02c3c3cf9..e20431161 100644 --- a/lib/database.c +++ b/lib/database.c @@ -129,7 +129,7 @@ void blankpackageperfile(struct pkginfoperfile *pifp) { pifp->essential= 0; pifp->depends= 0; pifp->depended= 0; - pifp->description= pifp->maintainer= pifp->source= 0; + pifp->description= pifp->maintainer= pifp->source= pifp->installedsize= 0; pifp->architecture= 0; blankversion(&pifp->version); pifp->conffiles= 0; @@ -155,6 +155,7 @@ int informative(struct pkginfo *pkg, struct pkginfoperfile *info) { if (info->depends || nes(info->description) || nes(info->maintainer) || + nes(info->installedsize) || nes(info->source) || nes(info->architecture) || informativeversion(&info->version) || diff --git a/lib/parse.c b/lib/parse.c index 499dddfc3..728756aeb 100644 --- a/lib/parse.c +++ b/lib/parse.c @@ -31,32 +31,33 @@ const struct fieldinfo fieldinfos[]= { /* NB: capitalisation of these strings is important. */ - { "Package", f_name, w_name }, - { "Essential", f_boolean, w_booleandefno, PKGIFPOFF(essential) }, - { "Status", f_status, w_status }, - { "Priority", f_priority, w_priority }, - { "Section", f_section, w_section }, - { "Maintainer", f_charfield, w_charfield, PKGIFPOFF(maintainer) }, - { "Architecture", f_charfield, w_charfield, PKGIFPOFF(architecture) }, - { "Source", f_charfield, w_charfield, PKGIFPOFF(source) }, - { "Version", f_version, w_version }, - { "Revision", f_revision, w_null }, - { "Config-Version", f_configversion, w_configversion }, - { "Replaces", f_dependency, w_dependency, dep_replaces }, - { "Provides", f_dependency, w_dependency, dep_provides }, - { "Depends", f_dependency, w_dependency, dep_depends }, - { "Pre-Depends", f_dependency, w_dependency, dep_predepends }, - { "Recommends", f_dependency, w_dependency, dep_recommends }, - { "Suggests", f_dependency, w_dependency, dep_suggests }, - { "Conflicts", f_dependency, w_dependency, dep_conflicts }, - { "Conffiles", f_conffiles, w_conffiles }, - { "Filename", f_filecharf, w_filecharf, FILEFOFF(name) }, - { "Size", f_filecharf, w_filecharf, FILEFOFF(size) }, - { "MD5sum", f_filecharf, w_filecharf, FILEFOFF(md5sum) }, - { "MSDOS-Filename", f_filecharf, w_filecharf, FILEFOFF(msdosname) }, - { "Description", f_charfield, w_charfield, PKGIFPOFF(description) }, + { "Package", f_name, w_name }, + { "Essential", f_boolean, w_booleandefno, PKGIFPOFF(essential) }, + { "Status", f_status, w_status }, + { "Priority", f_priority, w_priority }, + { "Section", f_section, w_section }, + { "Installed-Size", f_charfield, w_charfield, PKGIFPOFF(installedsize) }, + { "Maintainer", f_charfield, w_charfield, PKGIFPOFF(maintainer) }, + { "Architecture", f_charfield, w_charfield, PKGIFPOFF(architecture) }, + { "Source", f_charfield, w_charfield, PKGIFPOFF(source) }, + { "Version", f_version, w_version }, + { "Revision", f_revision, w_null }, + { "Config-Version", f_configversion, w_configversion }, + { "Replaces", f_dependency, w_dependency, dep_replaces }, + { "Provides", f_dependency, w_dependency, dep_provides }, + { "Depends", f_dependency, w_dependency, dep_depends }, + { "Pre-Depends", f_dependency, w_dependency, dep_predepends }, + { "Recommends", f_dependency, w_dependency, dep_recommends }, + { "Suggests", f_dependency, w_dependency, dep_suggests }, + { "Conflicts", f_dependency, w_dependency, dep_conflicts }, + { "Conffiles", f_conffiles, w_conffiles }, + { "Filename", f_filecharf, w_filecharf, FILEFOFF(name) }, + { "Size", f_filecharf, w_filecharf, FILEFOFF(size) }, + { "MD5sum", f_filecharf, w_filecharf, FILEFOFF(md5sum) }, + { "MSDOS-Filename", f_filecharf, w_filecharf, FILEFOFF(msdosname) }, + { "Description", f_charfield, w_charfield, PKGIFPOFF(description) }, /* Note that aliases are added to the nicknames table in parsehelp.c. */ - { 0 /* sentinel - tells code that list is ended */ } + { 0 /* sentinel - tells code that list is ended */ } }; #define NFIELDS (sizeof(fieldinfos)/sizeof(struct fieldinfo)) const int nfields= NFIELDS; |