Bug 20534 - abipkgdiff wrongly displays the name of added binary files
authorDodji Seketeli <dodji@redhat.com>
Tue, 30 Aug 2016 07:41:01 +0000 (09:41 +0200)
committerDodji Seketeli <dodji@redhat.com>
Tue, 30 Aug 2016 07:44:28 +0000 (09:44 +0200)
abipkgdiff displays an address instead of displaying the name of the
added binary file.  This patch, which is from a diff that Sinny Kumari
attached to the bugzilla entry, fixes the issue.

* tools/abipkgdiff.cc (compare): Show the name of the added
binary, rather than its address.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
tools/abipkgdiff.cc

index 076f519c44e2dc1559720551a8b76f9e3a486cea..197a9bdf5065edf6eb1dcfad44bd6666267e27d4 100644 (file)
@@ -1763,7 +1763,7 @@ compare(package&  first_package,
       for (vector<elf_file_sptr>::iterator it = diff.added_binaries.begin();
           it != diff.added_binaries.end(); ++it)
        {
-         cout << "  " << *it << ", ";
+         cout << "  " << (*it)->name << ", ";
          string soname;
          get_soname_of_elf_file((*it)->path, soname);
          if (!soname.empty())