]> sourceware.org Git - libabigail.git/commitdiff
Fix support of the --wp option of abipkgdiff
authorDodji Seketeli <dodji@redhat.com>
Tue, 11 Jul 2017 15:11:05 +0000 (17:11 +0200)
committerDodji Seketeli <dodji@redhat.com>
Tue, 11 Jul 2017 15:14:18 +0000 (17:14 +0200)
The package passed to the --wp option was not found because we were
not considering the absolute path of that package.  Fixed thus.

* tools/abipkgdiff.cc (parse_command_line): Consider the absolute
path of the package given in argument to --wp.

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

index ff404d32efdbad7c7c0e033253bf2c0990abd8f6..df1b96610a148724dc333d8582d41b0ac2278aa3 100644 (file)
@@ -2302,7 +2302,7 @@ parse_command_line(int argc, char* argv[], options& opts)
              opts.wrong_option = argv[i];
              return true;
            }
-         opts.kabi_whitelist_package = argv[j];
+         opts.kabi_whitelist_package = make_path_absolute(argv[j]).get();
          ++i;
        }
       else if (!strcmp(argv[i], "--help")
This page took 0.033115 seconds and 5 git commands to generate.