File: functions.yml

package info (click to toggle)
boxer-data 10.10.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 7,548 kB
  • sloc: makefile: 46; sh: 2
file content (21 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
classes:
  - Admin.etc.functions
  - Framework.pkg.base
parameters:
  doc:
    framework-pkg:
      tweak:
        - define routines to help edit APT config files
  tweak:
    - >
      _setaptsrc(){ set -e;\
        file="$1";\
        aptline="deb $2://$3 $4";\
        shift 4 || set -- main;\
        aptline="$aptline $@";\
        _setappendline "$file" "$aptline"; }
    - >
      _resetaptsrc(){ set -e;\
        _backup "$1";\
        rm -f "$1";\
        _setaptsrc "$@"; }