Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (13 sloc) 0.567 kb
-- This script prints all reverse dependencies for the specified
-- packages with respect to an ABS-like repository located at the
-- path given as first command-line argument.
module Main ( main ) where
import System.Environment ( getArgs )
import Distribution.ArchLinux.SrcRepo ( getRepoFromDir, getReverseDependencies )
main :: IO ()
main = do
habs:pkgs <- getArgs
repo <- getRepoFromDir habs
case repo of
Nothing -> fail ("cannot load habs tree at " ++ show habs)
Just r -> mapM_ putStrLn (filter (`notElem`pkgs) (getReverseDependencies pkgs r))
Jump to Line
Something went wrong with that request. Please try again.