From 325e4c34f6028db24d9059402d3f120d89c81e84 Mon Sep 17 00:00:00 2001 From: Nabil Hanna Date: Fri, 21 May 2010 09:05:48 +0000 Subject: [PATCH] oe1.6 has some other passwd strings --- passwordchanger/src/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/passwordchanger/src/plugin.py b/passwordchanger/src/plugin.py index 7c513f1..5cafae5 100644 --- a/passwordchanger/src/plugin.py +++ b/passwordchanger/src/plugin.py @@ -146,10 +146,10 @@ class PasswordChangerConsole(Screen): def changePassword(self): try: r = self.sendMessage("passwd") - if r.__contains__("Enter new password:"): + if r.__contains__("Enter new password:") or r.__contains__("New password:"): r = self.sendMessage(self.new_pass) - if r.__contains__("Re-enter new password:"): + if r.__contains__("Re-enter new password:") or r.__contains__("Retype password:"): r = self.sendMessage(self.new_pass) except: self.log += _("Error while setting new password!") -- 2.7.4