Permalink
Commits on Dec 23, 2017
  1. haskell-updater.cabal: bump up to 1.3.1

    trofi committed Dec 23, 2017
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  2. Distribution/Gentoo/GHC.hs: tweak for Cabal-2.1.0.0

    trofi committed Dec 23, 2017
    This time rawSystemStdInOut changed it's type in Cabal.
    
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Commits on Nov 26, 2017
  1. Main.hs: cleanup: remove extra whitespace

    trofi committed Nov 26, 2017
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  2. Main.hs: actually stop when loop is detected

    trofi committed Nov 26, 2017
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  3. haskell-updater.cabal: release-1.3

    trofi committed Nov 26, 2017
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  4. haskell-updater: rerun upgrader passes as long as there is progress

    trofi committed Nov 26, 2017
    The primary motivation here is to handle situation when
    haskell-updater run causes more package breakage not visible
    before haskell-updater run.
    
    The hypothetical example is the following setup:
    - dev-haskell/text-1 installed
    - dev-haskell/libfoo-0 installed (depends on dev-haskell/text-1)
    - dev-haskell/libbar-0 installed (depends on dev-haskell/libfoo-0)
    - dev-haskell/libbroken-0 installed and broken (depends on dev-haskell/text-1)
    - dev-haskell/text-2 available but not yet installed.
    
    In this case haskell-updater would catch only 'dev-haskell/libbroken'
    as broken and would reschedule it for rebuild. As haskell-updater
    uses --deep option that causes the following rebuilds:
    - dev-haskell/libbroken-0 (as haskell-updater detects it as broken)
    - dev-haskell/text-2 (as it's an upgrade dev-haskell/text-1,
                          dependency of 'libbroken')
      - dev-haskell/libfoo-0 (as it's caused by 'text' subslot change)
    
    If the above steps succeed user is left with one package
    freshly broken by upgrader run: 'dev-haskell/libbar-0'
    
    Rerun of haskell-updater would fix it. This change does precisely that.
    
    After this change haskell-updater runs as long as there is packages to rebuild.
    To avoid rebuild loops which can be caused broken dependencies of failing
    to build packages haskell-updater makes sure each run is unique.
    
    Closes: #7
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  5. Main.hs: move command runner to runDriver

    trofi committed Nov 26, 2017
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  6. Main.hs: cleanup: drop Action datatype and fold it into RunModifier

    trofi committed Nov 26, 2017
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Commits on Nov 25, 2017
  1. help text: don't imply there is more that one mode

    trofi committed Nov 25, 2017
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  2. Main.hs: make --upgrade and --dep-check a single action that does both.

    trofi committed Nov 25, 2017
    User almost never needs only upgrade. Upgrades are rare
    and don't guarantee that we upgrade from consistent state.
    
    Dependency checking is not more heavyweight that upgrade checking.
    
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  3. cleanup: rename 'getPackages' to 'getTargetPackages'

    trofi committed Nov 25, 2017
    Renamed as 'getPackages' handles single target. Opposed
    to getAllPackages which combines all targets.
    
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  4. GHC.hs: fix typo in the comment

    trofi committed Nov 25, 2017
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  5. Main.hs: mention both package.conf.d and gentoo directories for configs

    trofi committed Nov 25, 2017
    /gentoo/ gets orphans when emerge crashes after part of package
    was merged into live system (before vdb was updated).
    
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  6. haskell-updater.cabal: suggest more secure protocols: {http,git}:// -…

    trofi committed Nov 25, 2017
    …> https://
    
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  7. TODO: add a norte to handle restarts

    trofi committed Nov 25, 2017
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Commits on Jun 6, 2016
  1. Main.hs: add output of upgrade mode

    trofi committed Jun 6, 2016
    Signed-off-by: Sergei Trofimovich <siarheit@google.com>
  2. Main.hs: don't propagate --quiet down to package manager

    trofi committed Jun 6, 2016
    Use EMERGE_DEFAULT_OPTS or mechanism to pass arguments
    to package manager directly:
    
        haskell-updater -- --quiet
    
    Signed-off-by: Sergei Trofimovich <siarheit@google.com>
  3. README.md: fix arguments to haskell-updater

    trofi committed Jun 6, 2016
    Signed-off-by: Sergei Trofimovich <siarheit@google.com>
  4. Readme corrections

    Heather committed Jun 6, 2016
Commits on Jun 5, 2016
  1. haskell-updater.cabal: release 1.2.10

    trofi committed Jan 14, 2016
    Signed-off-by: Sergei Trofimovich <siarheit@google.com>
Commits on Mar 16, 2016
  1. Create README.md

    Heather committed Mar 16, 2016
Commits on Jan 14, 2016
  1. Distribution/Gentoo/GHC.hs: tweak for ghc-8.0.1_rc1

    trofi committed Jan 14, 2016
    Build failed as:
      Distribution/Gentoo/GHC.hs:28:42: error:
        Module
        ‘Distribution.InstalledPackageInfo’
        does not export
        ‘InstalledPackageInfo_’
    
    Signed-off-by: Sergei Trofimovich <siarheit@google.com>
Commits on Sep 24, 2015
  1. TODO: drop implemented bits

    trofi committed Sep 24, 2015
    Signed-off-by: Sergei Trofimovich <siarheit@google.com>
Commits on Mar 20, 2015
  1. release 1.2.9

    trofi committed Mar 20, 2015
    Signed-off-by: Sergei Trofimovich <siarheit@google.com>
  2. Distribution/Gentoo/GHC.hs: fix systems with packages registered more…

    trofi committed Mar 20, 2015
    …, than once
    
    Fix situaton when after ghc revbump upgrade
    user gets some bundled libraries registered twice
    (see comment for detailed sequence).
    
    Signed-off-by: Sergei Trofimovich <siarheit@google.com>
  3. cleanup: dropped unqualified Map import

    trofi committed Mar 20, 2015
    Signed-off-by: Sergei Trofimovich <siarheit@google.com>
  4. cleanup: removed directory traversal from readConf

    trofi committed Mar 20, 2015
    Signed-off-by: Sergei Trofimovich <siarheit@google.com>
  5. cleanup: renamed confFiles to listConfFiles

    trofi committed Mar 20, 2015
    Signed-off-by: Sergei Trofimovich <siarheit@google.com>
  6. cleanup: drop ghcLibDir argument from confFiles

    trofi committed Mar 20, 2015
    Signed-off-by: Sergei Trofimovich <siarheit@google.com>
Commits on Mar 19, 2015
  1. cleanup: moved config targets to a separate enum

    trofi committed Mar 19, 2015
    Signed-off-by: Sergei Trofimovich <siarheit@google.com>
Commits on Feb 14, 2015
  1. cleanup: turn CabalPV from 'type' to 'newtype'

    trofi committed Feb 14, 2015
    Signed-off-by: Sergei Trofimovich <siarheit@google.com>
  2. drop outdated comment.

    trofi committed Feb 14, 2015
    Now we to the same amount of work for
    both "broken" (according to 'ghc-pkg check --simple output')
    and "unbroken" systems.
    
    Signed-off-by: Sergei Trofimovich <siarheit@google.com>
  3. show program version in startup banner to catch outdated tools easier

    trofi committed Feb 14, 2015
    Signed-off-by: Sergei Trofimovich <siarheit@google.com>
Commits on Jan 12, 2015
  1. Merge pull request #6 from atlaua/pu/merge

    trofi committed Jan 12, 2015
    Fix detection of invalid packages
  2. Fix detection of invalid packages

    atlaua committed Jan 12, 2015
    During the merging phase of a package, emerge removes the corresponding
    directory in /var/db/pkg/, creates a new directory prefixed with
    "-MERGING-", adds the required files to it and moves it back into place.
    
    If haskell-updater is run during a emerge merge, it wrongly assumes
    there's a "<cat>/-MERGING-<package>" package due to this behaviour.
    
    Therefore, let haskell-updater ignore such directories.
    
    Signed-off-by: Luis Ressel <aranea@aixah.de>