libzypp 17.38.6
solvable.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8----------------------------------------------------------------------*/
9#include "solvable.h"
10
12
13namespace zyppng::log {
14
15 std::ostream &zyppng::log::formatter<sat::Solvable>::stream(std::ostream &str, const sat::Solvable &obj)
16 {
17 if ( ! obj )
18 return str << (obj.isSystem() ? "systemSolvable" : "noSolvable" );
19
20 return str << "(" << obj.id() << ")"
21 << ( obj.isKind( ResKind::srcpackage ) ? "srcpackage:" : "" ) << obj.ident()
22 << '-' << obj.edition() << '.' << obj.arch()
23 //<< "(" << obj.repository().alias() << ")"
24 ;
25 }
26
27}
28
static const ResKind srcpackage
Definition ResKind.h:44
A Solvable object within the sat Pool.
Definition solvable.h:65
bool isSystem() const
Return whether this Solvable belongs to the system repo.
Definition solvable.cc:278
Edition edition() const
The edition (version-release).
Definition solvable.cc:246
IdString ident() const
The identifier.
Definition solvable.cc:178
IdType id() const
Expert backdoor.
Definition solvable.h:338
Arch arch() const
The architecture.
Definition solvable.cc:252
bool isKind(const ResKind &kind_r) const
Test whether a Solvable is of a certain ResKind.
Definition solvable.cc:211
String related utilities and Regular expression matching.
Primary trait for object formatting.
Definition format.h:67