ot-main: Ignore lt- prefixes in binary names

libtool is the best

https://bugzilla.gnome.org/show_bug.cgi?id=682438
This commit is contained in:
Jasper St. Pierre 2012-08-22 05:58:17 -03:00
parent cc4df4f3c2
commit cda5b28bab

View File

@ -122,6 +122,9 @@ ostree_run (int argc,
else
binname = argv[0];
if (g_str_has_prefix (binname, "lt-"))
binname += 3;
if (g_str_has_prefix (binname, "ostree-"))
{
cmd = strchr (binname, '-');