output license-to-confirm in testcase
authorKlaus Kaempf <kkaempf@suse.de>
Tue, 2 May 2006 13:26:52 +0000 (13:26 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Tue, 2 May 2006 13:26:52 +0000 (13:26 +0000)
testsuite/source/tests/suseparser.cc

index 289aa15..de3bd0c 100644 (file)
@@ -151,11 +151,15 @@ int main( int argc, char * argv[] )
     if (argpos < argc) {
        int count = 0;
        for (ResStore::iterator it = store.begin(); it != store.end(); ++it) {
-           ResObject::Ptr robj = *it;
+           ResObject::constPtr robj = *it;
            MIL << ++count << *robj << endl;
            if (strcmp(argv[argpos], "reallyall") == 0) {
                const Dependencies & deps = robj->deps();
                MIL << deps << endl;
+               if (isKind<Package>( robj )) {
+                   Package::constPtr pkg( asKind<Package>( robj ) );
+                   MIL << "License[" << pkg->licenseToConfirm() << "]" << endl;
+               }
            }
        }