display repo priority in tool
authorMichael Andres <ma@suse.de>
Wed, 10 Jul 2013 09:31:17 +0000 (11:31 +0200)
committerMichael Andres <ma@suse.de>
Wed, 10 Jul 2013 09:31:17 +0000 (11:31 +0200)
tools/NameReqPrv.cc

index 9c0ea09..66f63ae 100644 (file)
@@ -288,7 +288,9 @@ int main( int argc, char * argv[] )
 
     for_( it, q.begin(), q.end() )
     {
-      tableOut( str::numstring( it->id() ), it->asString(), it->repository().name(), it->vendor().asString(),
+      tableOut( str::numstring( it->id() ), it->asString(),
+               str::form( "(%d)%s", it->repository().info().priority(), it->repository().name().c_str() ),
+               it->vendor().asString(),
                str::numstring( PoolItem(*it)->buildtime() ) );
       if ( ! it.matchesEmpty() )
       {