From: Ian Jackson Date: Wed, 22 May 1996 00:26:31 +0000 (+0100) Subject: dpkg (1.2.1); priority=MEDIUM X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c503a31249f796403133b96da086ca05376572ac;p=dpkg dpkg (1.2.1); priority=MEDIUM * `=' key in dselect really does `hold' rather than `unhold'. * dselect dependency processing now interacts better with `hold'. * dselect `I' key (not `i') modifies display of the info window. * dselect shows unavailable packages as being unavailable. * dselect main menu headings and many other strings changed to try to discourage people from deselecting every package and using [R]emove. Notably, `select' changed to `mark' throughout. * dselect disk methods now print a few fewer double slashes. * dselect disk access methods will offer to use dpkg --record-avail to scan the available packages, if no Packages file is found. * New dpkg --compare-versions option, for the benefit of scripts &c. * New dpkg --clear-avail option forgets all available packages info. * New dpkg --print-avail option, prints `available' data (from Packages, &c). * dpkg usage message is more informative, but no longer fits on screen. * dpkg --avail option renamed --record-avail. * Latest dpkg-name from Erick Branderhorst. * dpkg-scanpackages has more sensible problem reporting. * postinst configure now gets null argument (not or ) when there is no previously configured version. * Guidelines say that postinst configure is given previous version. * Guidelines don't refer to maintainer-script-args.txt in main text. * Guidelines (Texinfo source) uploaded separately. * Own version of strcpy (used for debugging) removed. * Interface to access methods document in source (doc/dselect-methods.txt). * debian.buildscript moves changes file into parent directory. -- Ian Jackson Wed, 22 May 1996 01:26:31 +0100 --- diff --git a/TODO b/TODO index 0a10a44b..fb93507a 100644 --- a/TODO +++ b/TODO @@ -4,9 +4,6 @@ urgent * Conflicts << installation ordering * Version numbers in pre-depends stuff * Search for all pre-depends things at once, bomb out if any not found - -bugs that need to be fixed quickly - * version numbers not starting digit early. * check description in dpkg-deb * field overflow in dpkg --list * _always_ show section in --yet-to-unpack @@ -16,7 +13,6 @@ bugs that need to be fixed quickly * Several things ought to be configurable but aren't. * Filenames containing newlines. Conffile names containing spaces. * dpkg --status for virtual packages - * dselect bottom window too large, and/or resize * update-alternatives prompting. * logging, both transcript logs (kept briefly) and action logs (kept forever?) 957 @@ -24,10 +20,10 @@ bugs that need to be fixed quickly * remove old docs from /usr/doc/dpkg. other stuff unlikely to get done soon + * understand Replaces in dselect * provide way for package to declare ownership of files for dpkg -S and -L without having dpkg act on this * md5sum component in new .deb files - * version number comparison option * diversions list as control archive entry * single maintainer script, and new package getting there first * dpkg -s show something for virtual packages @@ -43,16 +39,17 @@ other stuff unlikely to get done soon * start-stop-daemon in C. 1670 * dselect per-half focus and keybindings improvements. 1555 * floppy map (where are the files) - * highlight or pre-sort or something new or changed packages, - during upgrade selection. * how to change case of package names * support for adding files to dpkg's file lists - * side-by-side version display * `fake' or `null' packages * --purge remove empty directories which used too contain conffiles * conffiles handling options, including `replace removed files' done + * highlight or pre-sort or something new or changed packages, + during upgrade selection. + * side-by-side version display + * version number comparison option * Pre-Depends installation ordering * a.out version * uncomment ELF preinst modification @@ -63,3 +60,7 @@ done * Architecture field check * symlink rename change * dpkg --listfiles should do better for multi-package files (pkg, pkg: ...) + +obsoleted so not done + * version numbers not starting digit early. + * dselect bottom window too large, and/or resize diff --git a/debian.Changelog b/debian.Changelog index 2835742e..e7949505 100644 --- a/debian.Changelog +++ b/debian.Changelog @@ -1,3 +1,38 @@ +dpkg (1.2.1); priority=MEDIUM + + * `=' key in dselect really does `hold' rather than `unhold'. + * dselect dependency processing now interacts better with `hold'. + * dselect `I' key (not `i') modifies display of the info window. + * dselect shows unavailable packages as being unavailable. + * dselect main menu headings and many other strings changed to try to + discourage people from deselecting every package and using [R]emove. + Notably, `select' changed to `mark' throughout. + + * dselect disk methods now print a few fewer double slashes. + * dselect disk access methods will offer to use dpkg --record-avail + to scan the available packages, if no Packages file is found. + + * New dpkg --compare-versions option, for the benefit of scripts &c. + * New dpkg --clear-avail option forgets all available packages info. + * New dpkg --print-avail option, prints `available' data (from Packages, &c). + * dpkg usage message is more informative, but no longer fits on screen. + * dpkg --avail option renamed --record-avail. + + * Latest dpkg-name from Erick Branderhorst. + * dpkg-scanpackages has more sensible problem reporting. + * postinst configure now gets null argument (not or ) + when there is no previously configured version. + + * Guidelines say that postinst configure is given previous version. + * Guidelines don't refer to maintainer-script-args.txt in main text. + * Guidelines (Texinfo source) uploaded separately. + + * Own version of strcpy (used for debugging) removed. + * Interface to access methods document in source (doc/dselect-methods.txt). + * debian.buildscript moves changes file into parent directory. + + -- Ian Jackson Wed, 22 May 1996 01:26:31 +0100 + dpkg (1.2.0); priority=MEDIUM * dselect can sort packages by available and installed states, and diff --git a/debian.buildscript b/debian.buildscript index 6a85cd77..116dbbb9 100644 --- a/debian.buildscript +++ b/debian.buildscript @@ -17,7 +17,9 @@ export PATH really ./debian.rules clean ./debian.rules build really ./debian.rules binary +cp doc/guidelines.texi .. version=`sed -n 's/^version=//p' debian.rules` perl debian.mkchanges "$version" dpkg-$version.`dpkg --print-architecture`.changes + | pgp-auto -fast >../dpkg-$version.`dpkg --print-architecture`.changes +echo diff --git a/debian.changestemplate b/debian.changestemplate index a07b1e1c..ee309f35 100644 --- a/debian.changestemplate +++ b/debian.changestemplate @@ -15,3 +15,4 @@ Files: =f:dpkg-=v.=a.deb byhand - =f:dpkg-=velf.=a.nondebbin.tar.gz byhand - =f:dpkg-=v.=a.nondebbin.tar.gz byhand - + =f:guidelines.texi byhand - diff --git a/debian.rules b/debian.rules index a1c00dd1..73762602 100755 --- a/debian.rules +++ b/debian.rules @@ -1,7 +1,7 @@ #!/usr/bin/make -f package=dpkg -version=1.2.0 +version=1.2.1 archi=$(shell dpkg --print-architecture) DIR:=$(shell pwd) diff --git a/doc/dselect-methods.txt b/doc/dselect-methods.txt new file mode 100644 index 00000000..d90e7305 --- /dev/null +++ b/doc/dselect-methods.txt @@ -0,0 +1,124 @@ +From ian Sun May 14 18:21:53 +0100 1995 +To: Debian developers list +Subject: dselect installation method scripts + +Below is a (somewhat amended) repost of the posting I made a little +while ago about the interface between dselect and the installation +scripts it can run to extract packages. + +Carl Streeter has some hard disk scripts that look fairly good (I +haven't tested them). Anyone else looking to write such scripts +should see his code (Carl, can you upload them please ?). + +Howevever, there are a few points to note: + * Each set of scripts can support several `options' as they're called +- this saves having different code for the CD-ROM, hard disk, &c +methods. + * You have to supply a /usr/[local]/lib/dpkg/methods//names +file listing the options - see below. + +dselect *will* look in /usr/local/lib/dpkg/methods as well as +/usr/lib. Put your scripts there until you send them to me for +inclusion in dpkg. + +Details if the installation method handling is below, and in +method-scripts.txt; an example `test' method that just shows you how +to write a `names' file and how dselect reacts is available as: + +ab2022c57a1198838034c5f87ea501b1 dselect-example-test-method.tar +-rw-rw-r-- 1 ian ian 10240 May 14 18:19 dselect-example-test-method.tar + +NB that the code in dselect to select and call installation scripts is +ALPHA ! + +Ian. + +Each `installation method' will have three scripts: + + * Setup installation parameters. + * Update list of available packages. + * Unpack. + +Which set of scripts is to be used is selectable by the user, from the +`[S]etup' menu option. Basically, the user hits `Setup', gets +presented with a menu of choices and picks one. + +This (a) sets that `choice' to be the default installation method and +(b) runs the `setup' script for that choice. + +The setup script should prompt the user for parameters like the site +to NFS-mount or FTP from, the directory to use, or the directory or +filesystem where the .deb files can be found, or the tape or floppy +device to install from. It should store the responses under +/var/lib/dpkg/methods - see below. + +The update script should obtain a list of available packages if +possible (this is the Packages file from the FTP sites), and copy it +to /var/lib/dpkg/available. Be careful not to overwrite the available +file if something goes wrong - I'd suggest copying to `available.new' +and renaming. If no available list is available :-) it should print a +message saying so. + +The unpack script should feed all the available .deb files to + dpkg --unpack --no-also-select +(the --auto option may also be useful here). In the future there will +be a mechanism to allow (for example) a floppy-based installation +scheme to tell the user which packages are still to be processed; in +the meantime you should just keep going until the user says `stop'. + +If any of these scripts needs to display a message for the user, it +should wait for the user to hit `return' before exiting so that +dselect doesn't immediately rewrite the screen. + +If a script gives a non-zero exit status dselect will print a message +about it and prompt the user for an acknowledgement. If it exits with +a zero exit status then dselect will immediately go back into curses +and any message that the script printed just before exiting will not +be visible. + +The scripts will be kept in /usr/lib/dpkg/methods/. Each method +should have a directory under methods, containing: + `names' - a list of `user-visible options', see below. + `setup', `update', `unpack' - executable programs. + `desc.