Commit 0a43c4ec authored by David Zeuthen's avatar David Zeuthen
Browse files

use unique action names

parent da5c150b
......@@ -675,7 +675,7 @@ _check_pf (PolKitPolicyFile *pf, PolKitPolicyFileEntry *pfe, void *user_data)
}
if (strcmp (polkit_policy_file_entry_get_id (pfe), "org.example") == 0) {
if (strcmp (polkit_policy_file_entry_get_id (pfe), "org.example.valid3") == 0) {
if (is_danish) {
desc = "example (danish)";
msg = "message (danish)";
......@@ -690,7 +690,7 @@ _check_pf (PolKitPolicyFile *pf, PolKitPolicyFileEntry *pfe, void *user_data)
strcmp (r_msg, msg) == 0)
*counter += 1;
} else if (strcmp (polkit_policy_file_entry_get_id (pfe), "org.example2") == 0) {
} else if (strcmp (polkit_policy_file_entry_get_id (pfe), "org.example.valid3b") == 0) {
if (is_danish) {
desc = "example 2 (danish)";
msg = "message 2 (danish)";
......
<?xml version="1.0" encoding="UTF-8"?>
<policyconfig>
<action id="4org.example">
<action id="4org.example.invalid1">
<description>foo</description>
<message>bar</message>
<defaults>
......
<?xml version="1.0" encoding="UTF-8"?>
<policyconfig>
<action id="org.example">
<action id="org.example.invalid2">
<description>foo</description>
<message>bar</message>
<defaults>
......
<?xml version="1.0" encoding="UTF-8"?>
<policyconfig>
<action id="org.example">
<action id="org.example.invalid3">
<description>foo</description>
<message>bar</message>
<defaults>
......
<?xml version="1.0" encoding="UTF-8"?>
<policyconfig>
<action id="org.example">
<action id="org.example.invalid4">
<description>foo</description>
<message>bar</message>
<defaults>
......
......@@ -74,7 +74,7 @@
</future>
</future>
<action id="4org.example">
<action id="org.example.invalid5">
<description>foo</description>
<message>bar</message>
<defaults>
......
<?xml version="1.0" encoding="UTF-8"?>
<policyconfig>
<action id="org.example">
<action id="org.example.valid1">
<description>example</description>
<message>example</message>
<defaults>
......
<?xml version="1.0" encoding="UTF-8"?>
<policyconfig>
<action id="org.example">
<action id="org.example.valid2">
<description>example 2</description>
<message>message 2</message>
<defaults>
......
<?xml version="1.0" encoding="UTF-8"?>
<policyconfig>
<action id="org.example">
<action id="org.example.valid3">
<description>example</description>
<message>message</message>
<description xml:lang="da">example (danish)</description>
......@@ -13,7 +13,7 @@
</defaults>
</action>
<action id="org.example2">
<action id="org.example.valid3b">
<description>example 2</description>
<message>message 2</message>
<description xml:lang="da">example 2 (danish)</description>
......
<?xml version="1.0" encoding="UTF-8"?>
<policyconfig>
<action id="org.example">
<action id="org.example.valid4">
<description>example</description>
<message>example</message>
<defaults>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment