if (*i != pkg.installed)
note_width (headers, dc, i->Canonical_version (),
HMARGIN + SPIN_WIDTH, new_col);
- std::string z = format_1000s(packageversion(*i).source ()->size);
+ std::string z = format_1000s(i->source ()->size);
note_width (headers, dc, z, HMARGIN, size_col);
- z = format_1000s(packageversion(i->sourcePackage ()).source ()->size);
+ z = format_1000s(i->sourcePackage ().source ()->size);
note_width (headers, dc, z, HMARGIN, size_col);
}
std::string s = pkg.name;
}
packagesource *
-packageversion::source ()
+packageversion::source () const
{
if (!data->sources.size())
data->sources.push_back (packagesource());
}
vector<packagesource> *
-packageversion::sources ()
+packageversion::sources () const
{
return &data->sources;
}
void uninstall ();
/* invariant: never null */
- packagesource *source(); /* where can we source the file from */
+ packagesource *source() const; /* where can we source the file from */
/* invariant: never null */
- std::vector <packagesource> *sources(); /* expose the list of files.
+ std::vector <packagesource> *sources() const; /* expose the list of files.
source() returns the 'default' file
sources() allows managing multiple files
in a single package