File: distro.py

package info (click to toggle)
smart 1.4-2
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 6,512 kB
  • ctags: 5,747
  • sloc: python: 36,911; ansic: 18,059; sh: 9,983; perl: 2,800; cpp: 309; makefile: 124; xml: 103
file content (15 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

if not sysconf.getReadOnly():
    if not sysconf.has("sync-apt-sources"):
        sysconf.set("sync-apt-sources", True, weak=True)
    if not sysconf.has("detect-sys-channels"):
        sysconf.set("detect-sys-channels", "deb", weak=True)
    if sysconf.has("channels.rpm-sys"):
        if sysconf.get("channels.rpm-sys.name") == "RPM System":
            # Likely auto-detected in an old installation.  Let's remove it
            # to prevent dependency issues.
            sysconf.remove("channels.rpm-sys")

    # Import proxy information from Landscape if available and not
    # explicitly set in Smart itself.
    sysconf.set("use-landscape-proxies", True, weak=True)