From 9dae4b76df963cdbe6e65d0c9c76f5dc930216dc Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Fri, 19 Jul 2013 14:41:17 -0400 Subject: [PATCH] Accept meta-data named *.all.desktop in OPK files This could be used to create platform-independent packages. It can be useful for instance in the case where the executable is a script, or when the package points to an executable that is present on all systems on which OPKs are supposed to run. --- src/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menu.cpp b/src/menu.cpp index 7d3d756..2060e64 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -494,7 +494,7 @@ void Menu::openPackage(std::string path, bool order) pos = metadata.rfind('.'); metadata = metadata.substr(pos + 1); - if (metadata.compare(PLATFORM) == 0) { + if (!metadata.compare(PLATFORM) || !metadata.compare("all")) { has_metadata = true; break; }