summaryrefslogtreecommitdiff
path: root/dselect/pkgdisplay.cc
AgeCommit message (Collapse)AuthorFilesLines
2014-08-15dselect: Add new architecture columns to package list viewGuillem Jover1-0/+17
The new columns, shown by default, can be turned off with the new ‘A’ key, or bound to another key via the new “archdisplay” keybinding.
2014-08-15dselect: Rework columns codeGuillem Jover1-33/+20
Add a new struct to hold each column data, and helper functions to handle it, so that we can easily add new columns w/o needing to have to manually track the current and previous column width and similar.
2013-12-07Use https:// URLs instead of http:// when possibleGuillem Jover1-1/+1
2013-12-05dselect: Use C++11 nullptr instead of 0 or NULLGuillem Jover1-5/+5
It is way more descriptive, and has a better type. Check for C++11 compiler support and fallback nullptr to 0 if unavailable.
2012-04-09Use implicit __func__ in internerr() instead of explicit literal stringsGuillem Jover1-8/+5
2012-03-27dselect: Move total_width initialization from derived classes to baselistGuillem Jover1-3/+0
2012-03-27dselect: Move gap_width from derived classes to baselistGuillem Jover1-2/+0
2012-03-27Clarify internerr() messagesGuillem Jover1-5/+8
Print the bogus value that triggered the internal error, or simply reword unclear messages.
2012-01-09dselect: Remove dead code after break keywordGuillem Jover1-2/+0
The commit d4d3484ac88ca3953fef3cf2c0464cdc776b6574 forgot to remove this code.
2011-11-06dselect: Use modstatdb_get_status() instead of a global variableGuillem Jover1-5/+11
2011-04-30dselect: Mark ‘y’ variables as unused for getyx() and getmaxyx()Guillem Jover1-1/+1
The ncurses library does not provide a way to only retrieve the ‘x’ variable, so we have to pass a dummy ‘y’ which we are not going to use, for which the compiler emits a warning.
2011-02-11dselect: Switch to use libdpkg debug supportGuillem Jover1-1/+1
2010-11-19Cleanup white spacesGuillem Jover1-7/+7
Remove trailing spaces. Remove blank lines not separating different code blocks. Remove blank lines at the end of the file.
2010-11-19Cleanup and improve source code commentsGuillem Jover1-4/+5
Global review, which includes the following changes to try to increase consistency, update and improve the source code comments: - Spelling fixes. - Use American English forms. - Uppercase NULL, NUL and ASCII. - Use “Note: ” instead of the slightly cryptic “NB: ” form. - Write comments as proper sentences, including capitalizations and ending dots. - Move comments before the code, function or variable they refer to. - Move general function comments outside the body. - Convert function and variable description comments to doxygen. - Use one space before dot, exclamation and question marks. - Use ‘’ or “” instead of `' style quoting. - Remove author names from comments, already visible from “git blame”. - Mark strings for translators with “TRANSLATORS: ”. - Remove useless or outdated comments. - Fix comment indentation. - Standardize comment format: /* Short text comment. */ /* Long text, * comment. */ /* * Section text. */
2009-11-22Refer to “half configured” instead of “failed config”Guillem Jover1-1/+1
Use it in «dpkg-query -l» header and dselect package status printing for consistency with the rest of the ouput. This seems to have been a source of confusion in the past, so we'll try to use this nomenclature to refer to this package status.
2009-11-08Unify text in license headersGuillem Jover1-5/+5
Add a missing “of the License” after “version 2”. Move “but” and “GNU” at the end of line to the next line. This matches more closely the paragraph found in the license text for the GPL version 2.
2009-11-08Replace FSF address by pointing to the gnu.org URLGuillem Jover1-3/+2
Use the <http://www.gnu.org/licenses/> URL, instead of in most cases the outdated FSF address, which is way more stable, as the latter has changed several times in the past.
2009-10-26Sort order of header includesGuillem Jover1-3/+2
Place first <config.h> and <compat.h>, then all <sys/*.h> sorted by complexity, followed by the rest of the system headers, then <dpkg/*.h> and finally the local "*.h" ones. Move <dpkg/i18n.h> inclusion into libdpkg inclusion block, as the <gettext.h> compatibility header already takes care of including <locale.h> before <libintl.h> on environments were its probamatic. Removed duplicated inclusions.
2009-07-15Disable default automake preprocessor include pathsGuillem Jover1-2/+2
Tell automake not to add “-I.” to the preprocessor flags, to avoid file collisions with system headers. Re-add the path where config.h is located. Namespace and use bracketed file inclusions for libdpkg headers, and use quoted inclusions for program headers.
2009-07-15libdpkg: Rename dpkg-i18n.h to i18n.hGuillem Jover1-1/+1
2009-07-14Remove obsolete ‘hold’ and ‘hold-reinstreq’ internal status flagsGuillem Jover1-1/+1
These flags have been obsolete for a long time, and the ‘hold’ part has been converted to the ‘want_hold’ value on database parse. No current system having been upgraded through several Debian releases should have those values in their status database anymore.
2009-05-22dselect: Remove obsolete priorities supportSven Joachim1-4/+0
dselect shows wrong package priorities in the package selection screen. This is because the string representations arrays haven't been updated to reflect the removal of the “Recommended” and “Contrib” priorities in commit c8d3938be127e256fd593f234858fb9d474b2353.
2008-09-14Reduce header includes by removing unused onesGuillem Jover1-1/+0
2008-09-14libcompat: Add new compat.h headerGuillem Jover1-0/+1
2008-09-14libdpkg: Move gettext related definitions to a new dpkg-i18n.hGuillem Jover1-0/+2
2008-08-26Unify usage of extern "C" declarationsGuillem Jover1-4/+2
2008-06-30Switch to use UTF-8 copyright symbol and add missing onesGuillem Jover1-1/+1
Some 'Copyright <year>' entries didn't have a copyright symbol. Add it and switch the rest from '(C)' to '©', but we don't do this on program output which for now should remain pure ascii.
2008-03-30Implement triggers supportIan Jackson1-1/+3
Closes: #17243, #68981, #215374, #217622, #248693, #308285
2008-03-22Sort entries in enum pkgstatusIan Jackson1-3/+3
Fix all users that rely on the enum sorting.
2008-03-09Fix erroneous description of Breaks in dselectIan Jackson1-1/+1
The description should be 'breaks' as in 'A breaks B' rather than 'A breaks with B' since it is B that is broken by A and not vice versa.
2006-10-13Fix dselect segfault by adding a field description matching theGuillem Jover1-0/+1
dependency field enum position. Closes: #392731, #392724
2004-03-08Apply patch from Colin Watson to fix #139781; dselect had aScott James Remnant1-0/+2
hard-coded maximum window width of 179 chars for some things, when COLS is easily available.
2003-10-25Almost *EVERY* damn file was including config.h in the wrong spot. AfterAdam Heath1-1/+3
making it the first include, then off_t/size_t/etc could actually be redefined to be 64-bit compatible.
2002-05-06Perl sucks, fix Ian's email addressWichert Akkerman1-1/+1
2002-05-06Update Ian Jacksons' email addressWichert Akkerman1-1/+1
2001-07-16Remove Linux referencesWichert Akkerman1-1/+1
2000-06-09Merge things from the potato branch:Wichert Akkerman1-2/+3
+ po/*.po: updated + THANKS: Add Lele Gaifax + configure.in: add Italian to LINGUAS + doc/sv: new directory with Swedish manpages + doc/*: removed "GNU/Linux" since this runs on HURD as well + doc/ja/update-alternatives.8: new version + dpkg-deb/main.c: remove preprocessor define from gettextized string + dselect/main.c: remove preprocessor define from gettextized string + lib/showcright.c: remove preprocessor define from gettextized string + main/enquiry.c: can't use prepocessor defines in a gettextized string + dselect/pkgdisplay.cc: Replace empty string for eflags with a space + dselect/pkgsublist.cc: mark another string as translateable + dselect/pkgtop.cc: change code to reflect that the empty case for an eflagstring is now a single space, not an empty string (since gettext can't handle empty strings). + main/help.c: allocate a bit more space for the path buffer in checkpath() + main/main.c: fix location of --abort-after in --help output + scripts/debian-changelog-mode.el: fix documentation string for debian-changelog-finalise-last + scripts/dpkg-source.pl: fix typo + scripts/udate-alternatives.8: fixed errors found while Japanese translation was made. methods/Makefile.am: removed
2000-03-18Synchronize to the potato branch againWichert Akkerman1-2/+0
1999-12-22debian/dpkg-doc.postrm: Use doc-name instead of file-nameWichert Akkerman1-2/+4
dselect/pkgdisplay.cc: Replace empty string for eflags to a space so gettext doesn't use the translation-info po/update.sh: Generate dselect/helpmsgs.{cc,h} so we can translate them. po/POTFILES.in: add dselect/helpmsgs.cc dselect/pkgtop.cc: use ACS_HLINE instead of `-' dselect/baselist.cc: change colour of column headings dselect: add a new --export mode which suppresses the display of the helpscreen
1999-11-08More enhances updatesWichert Akkerman1-0/+1
1999-10-30Don't translate internal errorsWichert Akkerman1-5/+5
1999-10-25translation fixupsWichert Akkerman1-1/+1
1999-10-25Add gettext-support to dselectWichert Akkerman1-59/+95
1999-01-29dpkg 1.4.1Guy Maor1-4/+4
1996-07-01dpkg (1.2.11); priority=MEDIUMIan Jackson1-3/+3
* dselect had dependency bug if installed package newer than avail. * Added `replaces' to dselect's list of package relationship strings. -- Ian Jackson <ian@chiark.chu.cam.ac.uk> Mon, 1 Jul 1996 02:51:11 +0100
1996-05-28dpkg (1.2.3); priority=HIGHIan Jackson1-1/+1
* install-info doesn't replicate section headings (Bug#3125, #2973). * New dpkg-name manpage broken off from script (oops!). * dselect help screens made consistent with new strings, flags, &c. * dselect error flag column labelled E (Error), not H (Hold). * `Escape' no longer bound to `exit list without saving' in dselect. -- Ian Jackson <ian@chiark.chu.cam.ac.uk> Tue, 28 May 1996 02:14:57 +0100
1996-05-23dpkg (1.2.2); priority=MEDIUMIan Jackson1-2/+4
* Fixed dselect coredump found by Erick Branderhorst (thanks). * Sort obsolete removed packages separately, not under Available. -- Ian Jackson <ian@chiark.chu.cam.ac.uk> Thu, 23 May 1996 21:31:05 +0100
1996-05-22dpkg (1.2.1); priority=MEDIUMIan Jackson1-5/+5
* `=' 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 <unknown> or <none>) 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 <ian@chiark.chu.cam.ac.uk> Wed, 22 May 1996 01:26:31 +0100
1996-05-16dpkg (1.2.0); priority=MEDIUMIan Jackson1-11/+96
* dselect can sort packages by available and installed states, and display their version numbers. (Use O, o and V.) * Hold is properly integrated as a real `wanted state', rather than a separate flag. * Epochs in version numbers implemented, using the syntax <epoch>:<version>-<revision>. (Epoch not usually displayed.) * dselect disk method is architecture-independent (uses dpkg's installation architecture, and looks in the right part of the tree). * dselect disk method doesn't try to satisfy the predependencies of packages which are on hold. * Fixed conflict-related assertion failure. (Bug#2784.) * conffiles do not cause file conflicts if the conflicting package is in the `configuration only' state. (Bug#2720.) * Fixed messages where available version number was reported as installed version in conflict and dependency messages. (Bug#2654, Bug#2974.) * New format .deb files are default even for a.out compiles (but a.out version of dpkg is in old format). * Characters @:= (at colon equals) in package names now strictly forbidden everywhere (_ is still allowed in existing packages). * New dpkg --print-installation-architecture option prints installation architecture (compiled in), rather than build architecture (determined from gcc -print-libgcc-file-name). * Version messages show whether compiled a.out or ELF (i386 only). * Fixed missing space in version syntax error messages. * Manpage dpkg.8 installed with warning about inaccuracy. * Guidelines don't say to stop and restart daemons in runlevels 2345; instead they say to start in 2345 and stop in 016. * Guidelines and version messages say just Debian Linux. * Guidelines typo fix `"stop2' => `"stop"'. (Bug#2867.) * doc/Makefile.in clean properly deletes various guidelines.info* files. -- Ian Jackson <ian@chiark.chu.cam.ac.uk> Thu, 16 May 1996 00:01:21 +0100
1996-04-04dpkg (1.1.4); priority=MEDIUMIan Jackson1-0/+142
* Allow overwriting of conflicting packages being removed. (Bug#2614.) * a.out control file says Pre-Depends: libc4 | libc. (Bug#2640.) * ELF control file and libc dependencies changed to use finalised scheme. * ELF control file and libc dependencies for i386 only. (Bug#2617.) * Guidelines say use only released libraries and compilers. * Install wishlist as /usr/doc/dpkg/WISHLIST. * Remove spurious entries for Guidelines in info dir file. * dpkg-deb --build checks permissions on control (DEBIAN) directory. * Spaces in control file fields not copied by dpkg-split. (Bug#2633.) * Spaces in split file part control data ignore. (Bug#2633.) * Portability fixes, including patch from Richard Kettlewell. * Fixed minor configure.in bug causing mangled GCC -W options. -- Ian Jackson <ian@chiark.chu.cam.ac.uk> Thu, 4 Apr 1996 01:58:40 +0100