anchor.diff:  %% @doc Get the root directory of a repo (one level more than document_root)
   %% @end
   %%-------------------------------------------------------------------------
  -get_rootdir() -> % Use Debris Private Dir by default
  -                 %application:load(debris),
  -                 %RootDir1 = case code:priv_dir(debris) of
  -                 %             {error, bad_name} -> "." ;
  -                 %             P -> ?JOIN(P, "www")
  -                 %          end,
  -                 % Get rootdir from config
  -                 %case application:get_env(debris, document_root) of
  -                 %   {ok, RootDir2} -> add_repo(RootDir2) ;
  -                 %   undefined      -> add_repo(RootDir1)
  -                 %end
  -                 add_repo(get_docroot()).
  +get_rootdir() -> add_repo(get_docroot()).
   
   %%-------------------------------------------------------------------------
   %% @doc 
  
positive.code:             Target  = ?JOIN(RootDir, "index.html"),
              Repo    = filename:basename(RootDir),
              Module  = list_to_atom(Repo ++ "_index_html"),
              Suites  = application:get_env(debris, suites, ?DEFAULT_ARCHIVES),
              Compos  = application:get_env(debris, components, ["main"]),
              {ok, Module} = erlydtl:compile_file(Source, Module),
              Vars = get_template_vars() ++ [ {repository, Repo}
                                             ,{pubkey, Repo ++ ".asc"}
  
negative.code: init_repo(RootDir) when is_list(RootDir) ->
           % Ensure directory
           ok = filelib:ensure_dir(?JOIN(RootDir,"fakedir")),
           Repo = list_to_atom(filename:basename(RootDir)),
           % Create dists and pool
           Dists = ?JOIN(RootDir, "dists"),
           Pool  = ?JOIN(RootDir, "pool"),
           ok = filelib:ensure_dir(?JOIN(Dists,"fakedir")),
           ok = filelib:ensure_dir(?JOIN(Pool,"fakedir")),
           % Create Suites (only from config file)
           Suites = get_conf(Repo, suites, ?DEFAULT_SUITES),
           %DSuites = lists:map(fun(S) -> ?JOIN(Dists, S) end, Suites),
           DSuites = dir_combine({dir, Dists}, dir_escape(Suites)),
           % Create Components ( default : main )
           Components = get_conf(Repo, components, ["main"]),
           Dirs = dir_combine(dir_escape(DSuites), dir_escape(Components)),
           Subs = get_subs(),
           Terminals = lists:flatmap(fun(S) -> Dt = lists:map(fun(Z) -> Dc = ?JOIN(S, Z) ,
                                                                    ok = filelib:ensure_dir(?JOIN(Dc, "fakedir")),
                                                                    create_arch_release_file(RootDir, Dc),
                                                                    Dc end, Subs),
                                           Dt end, Dirs),
           lists:foreach(fun(D) ->  create_archive_release_file(RootDir, D) end,  Suites),
           % Create css for repo
           do_repo_index_css(RootDir),         
           % Create index.html for repo
  