[gnome-tweak-tool] Only one extension per zip file allowed



commit 0d1ab146460254bc5797b28df619d1c7d137fe6f
Author: John Stowers <john stowers gmail com>
Date:   Wed May 11 09:39:54 2011 +1200

    Only one extension per zip file allowed

 gtweak/tweaks/tweak_shell_extensions.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_shell_extensions.py b/gtweak/tweaks/tweak_shell_extensions.py
index e90f3e6..2499be0 100644
--- a/gtweak/tweaks/tweak_shell_extensions.py
+++ b/gtweak/tweaks/tweak_shell_extensions.py
@@ -78,6 +78,8 @@ class _ShellExtensionInstallerTweak(Tweak):
                         file_metadata = n
                     if n.endswith("extension.js"):
                         extension = True
+                        if file_extension:
+                            raise Exception("Only one extension per zip file")
                         file_extension = n
 
                 if not file_metadata:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]