~ubuntu-branches/ubuntu/precise/software-properties/precise-security

« back to all changes in this revision

Viewing changes to softwareproperties/kde/SoftwarePropertiesKDE.py

  • Committer: Package Import Robot
  • Author(s): Michael Vogt, Manish Sinha (मनीष सिन्हा), Robert Roth
  • Date: 2011-11-21 16:32:49 UTC
  • Revision ID: package-import@ubuntu.com-20111121163249-459k0pq3rgu9yucd
Tags: 0.82
[ Manish Sinha (मनीष सिन्हा) ]
* lp:~manishsinha/software-properties/fix-887249-handle-404-error:
  - improve error handling for incorrect/misspelled PPAs (LP: #887249)
* lp:~manishsinha/software-properties/list-ppa-names-for-user-or-team:
  - Made the change to alert the user that a user/team does not have any PPAs

[ Robert Roth ]
* lp:~evfool/software-properties/lintianfixes:
  - Fixed capitalization issue in control file
* Fix warnings logged to terminal about inexistent handlers by checking 
  if the handlers exist
* Change geeky authentication text displayed on policykit auth dialog to 
  the one suggested by mpt (LP: #828285)
* Reset the popcon checkbox value if changed, but auth failed (LP: #874759)
* Apt-add-repository --remove changed to also remove the debsrc
  line (LP: #838507)
* Apt-add-repository PPA warning changed to warn you about add/removal
  depending on what you really want to do.
* Update the manpage of apt-add-repository with the available 
  options. (LP: #697546)
* Reset the text on the mirror testing dialog after closing/canceling 
  it (LP: #875679)
* Unicode encode PPA description and displaynam to avoid 
  UnicodeDecodeErrors (LP: #827355)
* Do not expand the server combobox (LP: #875131)

Show diffs side-by-side

added added

removed removed

Lines of Context:
595
595
    if index != -1:
596
596
        value = self.combobox_interval_mapping[index]
597
597
        # Only write the key if it has changed
598
 
        if not value == apt_pkg.Config.FindI(softwareproperties.CONF_MAP["autoupdate"]):
599
 
            apt_pkg.Config.Set(softwareproperties.CONF_MAP["autoupdate"], str(value))
 
598
        if not value == apt_pkg.config.find_i(softwareproperties.CONF_MAP["autoupdate"]):
 
599
            apt_pkg.config.set(softwareproperties.CONF_MAP["autoupdate"], str(value))
600
600
            self.write_config()
601
601
 
602
602
  def on_auto_update_toggled(self):
720
720
    '''Show a dialog that allows to add a repository located on a CDROM
721
721
       or DVD'''
722
722
    # testing
723
 
    #apt_pkg.Config.Set("APT::CDROM::Rename","true")
 
723
    #apt_pkg.config.set("APT::CDROM::Rename","true")
724
724
 
725
 
    saved_entry = apt_pkg.Config.Find("Dir::Etc::sourcelist")
 
725
    saved_entry = apt_pkg.config.find("Dir::Etc::sourcelist")
726
726
    tmp = tempfile.NamedTemporaryFile()
727
 
    apt_pkg.Config.Set("Dir::Etc::sourcelist",tmp.name)
 
727
    apt_pkg.config.set("Dir::Etc::sourcelist",tmp.name)
728
728
    progress = CdromProgress(self.datadir, self, kapp)
729
 
    cdrom = apt_pkg.GetCdrom()
 
729
    cdrom = apt_pkg.Cdrom()
730
730
    # if nothing was found just return
731
731
    try:
732
 
      res = cdrom.Add(progress)
 
732
      res = cdrom.add(progress)
733
733
    except SystemError, msg:
734
734
      title = _("CD Error")
735
735
      text = _("<big><b>Error scanning the CD</b></big>\n\n%s")%msg
736
736
      KMessageBox.sorry(self.userinterface, utf8(text), utf8(title))
737
737
      return
738
738
    finally:
739
 
      apt_pkg.Config.Set("Dir::Etc::sourcelist",saved_entry)
 
739
      apt_pkg.config.set("Dir::Etc::sourcelist",saved_entry)
740
740
      progress.close()
741
741
 
742
742
    if res == False:
746
746
    for x in open(tmp.name):
747
747
      line = x
748
748
    if line != "":
749
 
      full_path = "%s%s" % (apt_pkg.Config.FindDir("Dir::Etc"),saved_entry)
 
749
      full_path = "%s%s" % (apt_pkg.config.find_dir("Dir::Etc"),saved_entry)
750
750
      # insert cdrom source first, so that it has precedence over network sources
751
751
      self.sourceslist.list.insert(0, SourceEntry(line,full_path))
752
752
      self.set_modified_sourceslist()