%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/augeas/lenses/dist/tests/ |
Upload File : |
module Test_aptsource = let simple_source = "deb ftp://mirror.bytemark.co.uk/debian/ etch main\n" let multi_components = "deb http://security.debian.org/ etch/updates main contrib non-free\n" test Aptsources.lns get simple_source = { "1" { "type" = "deb" } { "uri" = "ftp://mirror.bytemark.co.uk/debian/" } { "distribution" = "etch" } { "component" = "main" } } test Aptsources.lns get multi_components = { "1" { "type" = "deb" } { "uri" = "http://security.debian.org/" } { "distribution" = "etch/updates" } { "component" = "main" } { "component" = "contrib" } { "component" = "non-free" } } let multi_line = "#deb http://www.backports.org/debian/ sarge postfix # deb http://people.debian.org/~adconrad sarge subversion deb ftp://mirror.bytemark.co.uk/debian/ etch main non-free contrib deb http://security.debian.org/ etch/updates main contrib non-free # security line deb-src http://mirror.bytemark.co.uk/debian etch main contrib non-free\n" test Aptsources.lns get multi_line = { "#comment" = "deb http://www.backports.org/debian/ sarge postfix" } { "#comment" = "deb http://people.debian.org/~adconrad sarge subversion" } {} { "1" { "type" = "deb" } { "uri" = "ftp://mirror.bytemark.co.uk/debian/" } { "distribution" = "etch" } { "component" = "main" } { "component" = "non-free" } { "component" = "contrib" } } { "2" { "type" = "deb" } { "uri" = "http://security.debian.org/" } { "distribution" = "etch/updates" } { "component" = "main" } { "component" = "contrib" } { "component" = "non-free" } } { "3" { "type" = "deb-src" } { "uri" = "http://mirror.bytemark.co.uk/debian" } { "distribution" = "etch" } { "component" = "main" } { "component" = "contrib" } { "component" = "non-free" } } let trailing_comment = "deb ftp://server/debian/ etch main # comment\n" (* Should be a noop; makes sure that we preserve the trailing comment *) test Aptsources.lns put trailing_comment after set "/1/type" "deb" = trailing_comment (* Local Variables: *) (* mode: caml *) (* End: *)