Ticket #590: patch

File patch, 1.2 KB (added by [email protected]…, 15 years ago)
  • src/lib/Client/Frame.py

    diff -r c4dde6eee87c -r 8bde6ea81ac2 src/lib/Client/Frame.py
    a b  
    7777 
    7878        self.logger.info("Loaded tool drivers:") 
    7979        self.logger.info([tool.__name__ for tool in self.tools]) 
    80         if not self.dryrun and not self.setup['interactive'] and \ 
    81                                     not self.setup['bundle']: 
     80        if not self.dryrun and not self.setup['bundle']: 
    8281            for cfile in [cfl for cfl in config.findall(".//ConfigFile") \ 
    8382                          if cfl.get('name') in self.__important__]: 
    8483                tl= [t for t in self.tools if t.handlesEntry(cfile) \ 
    8584                     and t.canVerify(cfile)] 
    8685                if tl: 
    8786                    if not tl[0].VerifyConfigFile(cfile, []): 
     87                        if self.setup['interactive'] and not \ 
     88                               promptFilter("Install %s: %s? (y/N):", [cfile]): 
     89                            continue 
    8890                        try: 
    8991                            self.states[cfile] = tl[0].InstallConfigFile(cfile) 
    9092                        except: