summaryrefslogtreecommitdiff
path: root/src/pkg_ver_item.cc
AgeCommit message (Collapse)AuthorFilesLines
2010-04-30Ok, go ahead and specialize archives_text on the inter-archive string.Daniel Burrows1-1/+1
I just know someone will complain if I don't. Besides, it makes sense: the columnizers need to conserve horizontal space, so dropping whitespace is worthwhile.
2010-04-30Reuse the archives_text code in pkg_columnizer and pkg_ver_columnizer.Daniel Burrows1-8/+3
This required adding a parameter to determine whether to drop the "now" archive (which those pieces of code previously did). This does mean that an extra " " gets added between archive names.
2008-10-29Massive refactoring and redesign to properly support background downloads in ↵Daniel Burrows1-1/+1
the GUI and running dpkg in a terminal. This should probably have been split into a lot of smaller commits, but it's too late now. The GUI now runs downloads in a background thread, just like the curses interface. In fact, it is *just* like the curses interface: the code of ui_download_manager and download_thread has been parameterized so that it can be used from either the curses frontend or the GUI frontend. These files should eventually migrate to the generic directory. Some of the parameterization left ugly stuff behind, like refcounted_progress and the wacky redesign of the curses progress class (which took place solely so that it could be unified with the GTK+ one). It may be worth taking some time to clean this code up. In addition, the code for download_install_manager has been refactored again. Instead of exposing the different parts of "finish", which would eliminate any hope of having a unified ui_download_manager harness, the "finish" method (for all download managers) is now explicitly continuation based, and the install manager uses this feature to break up the download. The function that runs dpkg in a terminal now takes a continuation to be invoked in the main thread, so it can fork dpkg in a subprocess, and then call the continuation when the subprocess terminates. This means we don't need to mess around with threads at all in the dpkg-terminal-creation process, a huge relief. It also fits in with the generally continuation-y feel of a lot of the aptitude code, and everyone loves continuations in their GUI programs anyway! Note: in this commit, I've adopted a policy of always returning right after I invoke the continuation, to make it clear in the code what's going on and to minimize the chances of a future edit screwing this up. (if I really wanted to get serious about that, of course, I would write an INVOKE_CONTINUATION macro...) A few other minor things were touched up here: for instance, the program no longer enters an infinite loop after running dpkg, and more download events are logged. There's still more work to do around the edges: changelog downloading from the GUI is broken, and the download status tab is all messed up. Also, I'd like to support the status pipe from dpkg (but I think that's a post-0.5 thing).
2008-07-12Don't display the hostname / installed size when column-formatting virtual ↵Daniel Burrows1-0/+2
packages with a "%t" (archive) column.
2008-03-29Display the number of packages in a tree next to the tree description.Daniel Burrows1-3/+21
There's an exception for dependency trees: the number next to, e.g., Depends displays the number of dependencies the package has rather than the number of satisfying versions. However, each dependency's count is the number of satisfying versions. The implementation is a bit gross, but (a) I don't think it can be made better without cwidget changes, and (b) to an extent, that's just a reflection of the fact that it's a non-generic implementation; a generic implementation is arguably *bad*, because for better UI we need distinctions like the one above.
2007-11-15Fix through pkg_ver_item.Daniel Burrows1-1/+2
2007-11-15Use brackets, not quotes, to include cwidget stuff; add namespace ↵Daniel Burrows1-95/+101
boilerplate and annotations to pkg_ver_item.
2007-11-15cw::progress_ref -> progress_ref.Daniel Burrows1-1/+1
2007-11-15Fix a bunch of #includes that got hit by sed and turned into namespaced ↵Daniel Burrows1-2/+2
includes.
2007-11-15Uniformly replace 'style' with 'cw::style', and fix up everything through ↵Daniel Burrows1-3/+3
load_grouppolicy.
2007-11-15Fix some duplicated type names that snuck in in a previous pass over the tree.Daniel Burrows1-1/+1
2007-11-15cw::key -> cw::config::key.Daniel Burrows1-1/+1
2007-11-15cwi::key -> cw::key.Daniel Burrows1-1/+1
2007-11-15Uniformly replace widgets::X with cw::X in .cc files.Daniel Burrows1-11/+11
2007-11-15Consistently use cw::toplevel instead of toplevel::.Daniel Burrows1-2/+2
2007-11-15Pass over the source with sed to put global_bindings in config::.Daniel Burrows1-6/+6
2007-11-15Pass over the source tree with sed to eliminate a lot of the mindless ↵Daniel Burrows1-3/+3
search-and-replace I was having to do. (namespace aliases and cleanup are still needed)
2007-11-14First pass over the code.Daniel Burrows1-13/+13
This tree version is still BROKEN. This commit changes a bunch of code mechanically, and completely fixes all the subdirectories and files through download_screen in the top-level directory. Some unfortunate namespace choices in cwidget showed up here. widgets and config should probably be merged into the cwidget namespace, and I've created namespace aliases that pretend this happened as I go through the .cc files. Luckily, that change can largely be accounted for automatically.
2007-10-30Properly thread pointers to the cache and the package records through match ↵Daniel Burrows1-1/+1
routines, so that matchers work from inside the cache while it's being initialized (e.g., in the garbage detection routine) instead of crashing.
2007-10-24Apply Ian Jackson's patch to display dpkg trigger states (Closes: #438543).Daniel Burrows1-0/+6
The patch has been autoconfubscated, so it'll build with today's apt as well as with any future version that provides trigger states.
2007-10-03Use a signal instead of a virtual method to communicate changes in whether a ↵Daniel Burrows1-10/+13
tree item is highlighted. The original design required less memory, but it turns out that the common patterns of operation that I ended up using are much easier to implement using signals. In particular, some design work I've been doing to overhaul the configuration UI will be a LOT easier to implement with this change.
2007-06-17Expose the package column formatting logic directly.Daniel Burrows1-23/+15
Made setup_column public, and added a public static override that does the setup directly, without a need to construct a column formatter. I think it would be interesting to see whether the package and version columnizers can be merged to a greater degree than they are currently; much of the version columnization just replaces visible_ver with ver.
2005-11-15[aptitude @ Use the new description-extraction routines instead of directly ↵Daniel Burrows1-4/+1
looking up the description.]
2005-11-04[aptitude @ Deal with the fact that the members of sigaction vary between ↵Daniel Burrows1-3/+2
platforms. (Closes: #337536)]
2005-10-24[aptitude @ Sort lists of versions.]Daniel Burrows1-0/+9
2005-10-03[aptitude @ Make the assignment of styles to version items match the ↵Daniel Burrows1-8/+16
assignment of styles to package items.]
2005-10-01[aptitude @ Import the Subversion repository into darcs.]Daniel Burrows1-0/+801