[ostree] ot-main: Ignore lt- prefixes in binary names
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [ostree] ot-main: Ignore lt- prefixes in binary names
- Date: Wed, 24 Oct 2012 16:20:45 +0000 (UTC)
commit cda5b28bab7495515bf2e8c8717639cb99e3ce35
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Aug 22 05:58:17 2012 -0300
    ot-main: Ignore lt- prefixes in binary names
    
    libtool is the best
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682438
 src/ostree/ot-main.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/ostree/ot-main.c b/src/ostree/ot-main.c
index 554307f..0045f32 100644
--- a/src/ostree/ot-main.c
+++ b/src/ostree/ot-main.c
@@ -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, '-');
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]