~ubuntu-branches/debian/experimental/dpkg/experimental

« back to all changes in this revision

Viewing changes to dselect/pkginfo.cc

  • Committer: Package Import Robot
  • Author(s): Guillem Jover
  • Date: 2012-01-31 21:58:08 UTC
  • Revision ID: package-import@ubuntu.com-20120131215808-jd379pas5w3epk43
Tags: 1.16.2~really1.16.1.2
Revert unapproved NMU.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
      {  0                        }
58
58
    };
59
59
  return
60
 
    modstatdb_get_status() == msdbrw_readonly ? ro :
 
60
    !readwrite ? ro :
61
61
    !recursive ? rw :
62
62
                 recur;
63
63
}
92
92
void packagelist::itd_relations() {
93
93
  whatinfovb(_("Interrelationships"));
94
94
 
95
 
  if (table[cursorline]->pkg->set->name) {
 
95
  if (table[cursorline]->pkg->name) {
96
96
    debug(dbg_general, "packagelist[%p]::idt_relations(); '%s'",
97
97
          this, table[cursorline]->relations.string());
98
98
    waddstr(infopad,table[cursorline]->relations.string());
104
104
void packagelist::itd_description() {
105
105
  whatinfovb(_("Description"));
106
106
 
107
 
  if (table[cursorline]->pkg->set->name) {
 
107
  if (table[cursorline]->pkg->name) {
108
108
    const char *m= table[cursorline]->pkg->available.description;
109
109
    if (!m || !*m)
110
110
      m = table[cursorline]->pkg->installed.description;
113
113
    const char *p= strchr(m,'\n');
114
114
    int l= p ? (int)(p-m) : strlen(m);
115
115
    wattrset(infopad,info_headattr);
116
 
    waddstr(infopad, pkg_name(table[cursorline]->pkg, pnaw_nonambig));
 
116
    waddstr(infopad, table[cursorline]->pkg->name);
117
117
    waddstr(infopad," - ");
118
118
    waddnstr(infopad,m,l);
119
119
    wattrset(infopad,info_attr);
130
130
  whatinfovb(_("Installed control file information"));
131
131
 
132
132
  werase(infopad);
133
 
  if (!table[cursorline]->pkg->set->name) {
 
133
  if (!table[cursorline]->pkg->name) {
134
134
    severalinfoblurb();
135
135
  } else {
136
136
    varbuf vb;
146
146
  whatinfovb(_("Available control file information"));
147
147
 
148
148
  werase(infopad);
149
 
  if (!table[cursorline]->pkg->set->name) {
 
149
  if (!table[cursorline]->pkg->name) {
150
150
    severalinfoblurb();
151
151
  } else {
152
152
    varbuf vb;