~carlfk/ubuntu/natty/software-properties/software-properties-fix-686348

« back to all changes in this revision

Viewing changes to softwareproperties/gtk/DialogAdd.py

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2009-06-08 18:28:24 UTC
  • Revision ID: james.westby@ubuntu.com-20090608182824-208w3y2udpr3kjgn
Tags: 0.73
* Support adding PPA keys automatically (thanks to
  Celso)
* support shorthand syntax for PPAs (ppa:owner or
  ppa:owner/ppa_name) when clicking on "add"
* support new commandline option "--enable-ppa name"

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
    button 'add' accordingly
77
77
    """
78
78
    line = self.entry.get_text() + "\n"
 
79
    if line.startswith("ppa:"):
 
80
      self.button_add.set_sensitive(True)
 
81
      return
79
82
    source_entry = SourceEntry(line)
80
83
    if source_entry.invalid == True or source_entry.disabled == True:
81
84
        self.button_add.set_sensitive(False)