more descriptions
This commit is contained in:
parent
a2a3d3f3a2
commit
4d33b25ba3
|
@ -17,6 +17,7 @@ type Url = String
|
||||||
type Section = String
|
type Section = String
|
||||||
|
|
||||||
data Suite = Stable | Testing | Unstable | Experimental
|
data Suite = Stable | Testing | Unstable | Experimental
|
||||||
|
deriving Show
|
||||||
|
|
||||||
showSuite :: Suite -> String
|
showSuite :: Suite -> String
|
||||||
showSuite Stable = "stable"
|
showSuite Stable = "stable"
|
||||||
|
@ -44,7 +45,8 @@ debCdn suite = [l, srcLine l]
|
||||||
{- Makes sources.list have a standard content using the mirror CDN,
|
{- Makes sources.list have a standard content using the mirror CDN,
|
||||||
- with a particular Suite. -}
|
- with a particular Suite. -}
|
||||||
stdSourcesList :: Suite -> Property
|
stdSourcesList :: Suite -> Property
|
||||||
stdSourcesList = setSourcesList . debCdn
|
stdSourcesList suite = setSourcesList (debCdn suite)
|
||||||
|
`describe` ("standard sources.list for " ++ show suite)
|
||||||
|
|
||||||
setSourcesList :: [Line] -> Property
|
setSourcesList :: [Line] -> Property
|
||||||
setSourcesList ls = sourcesList `File.hasContent` ls `onChange` update
|
setSourcesList ls = sourcesList `File.hasContent` ls `onChange` update
|
||||||
|
|
|
@ -8,3 +8,4 @@ type HostName = String
|
||||||
set :: HostName -> Property
|
set :: HostName -> Property
|
||||||
set hostname = "/etc/hostname" `File.hasContent` [hostname]
|
set hostname = "/etc/hostname" `File.hasContent` [hostname]
|
||||||
`onChange` cmdProperty "hostname" [Param hostname]
|
`onChange` cmdProperty "hostname" [Param hostname]
|
||||||
|
`describe` ("hostname " ++ hostname)
|
||||||
|
|
Loading…
Reference in New Issue