~echidnaman/software-properties/pykde4

« back to all changes in this revision

Viewing changes to add-apt-repository

  • Committer: Michael Vogt
  • Date: 2009-07-17 15:49:52 UTC
  • Revision ID: michael.vogt@ubuntu.com-20090717154952-853y4o0i2jc71xro
* softwareproperties/SoftwareProperties.py:
  - allow removing of sources.list.d files with just a single
    line (LP: #399898)
* add-apt-repository:
  - ensure that new files are created with 0644 by default
    (LP: #399709)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
        print _("Error: need a repository as argument")
23
23
        sys.exit(1)
24
24
 
 
25
    # force new ppa file to be 644 (LP: #399709)
 
26
    os.umask(0022)
 
27
 
25
28
    sp = SoftwareProperties(options)    
26
29
    line = args[0]
27
30
    if not sp.add_source_from_line(line):