Changed install script to install the metadata file in the new standard location.

Thu, 18 Aug 2016 17:34:05 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 18 Aug 2016 17:34:05 +0200
changeset 5102
9cc5217881ab
parent 5101
6f34ec319318
child 5104
0b9420dc1093

Changed install script to install the metadata file in the new standard location.

install.py file | annotate | diff | comparison | revisions
--- a/install.py	Thu Aug 18 17:06:01 2016 +0200
+++ b/install.py	Thu Aug 18 17:34:05 2016 +0200
@@ -511,6 +511,7 @@
             marker = ""
         for name in ["/usr/share/applications/eric6" + marker + ".desktop",
                      "/usr/share/appdata/eric6" + marker + ".appdata.xml",
+                     "/usr/share/metainfo/eric6" + marker + ".appdata.xml",
                      "/usr/share/applications/eric6_webbrowser" + marker +
                      ".desktop",
                      "/usr/share/applications/eric6_browser" + marker +
@@ -823,7 +824,7 @@
                 os.path.join(dst, "eric6_browser" + marker + ".desktop"),
                 marker)
             dst = os.path.normpath(
-                os.path.join(distDir, "usr/share/appdata"))
+                os.path.join(distDir, "usr/share/metainfo"))
             if not os.path.exists(dst):
                 os.makedirs(dst)
             copyDesktopFile(
@@ -838,7 +839,12 @@
                 os.path.join(sourceDir, "eric6.desktop"),
                 "/usr/share/applications/eric6" + marker + ".desktop",
                 marker)
-            if os.path.exists("/usr/share/appdata"):
+            if os.path.exists("/usr/share/metainfo"):
+                copyDesktopFile(
+                    os.path.join(sourceDir, "eric6.appdata.xml"),
+                    "/usr/share/metainfo/eric6" + marker + ".appdata.xml",
+                    marker)
+            elif os.path.exists("/usr/share/appdata"):
                 copyDesktopFile(
                     os.path.join(sourceDir, "eric6.appdata.xml"),
                     "/usr/share/appdata/eric6" + marker + ".appdata.xml",

eric ide

mercurial