#260: cabal upgrade runs install on the current package instead of upgrading installed packages ---------------------------------+------------------------------------------ Reporter: tibbe | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.8.2 Platform: Linux | ---------------------------------+------------------------------------------ I was very suprised when I tried to use cabal to upgrade my installed packages today: {{{ $ cabal upgrade cabal: No cabal file found. Please create a package description file <pkgname>.cabal }}} Looks like Cabal tries to do a build instead so I tried it in a directory with a .cabal file: {{{ $ cd hyena $ cabal upgrade Configuring hyena-0.1.0... Preprocessing library hyena-0.1.0... Preprocessing executables for hyena-0.1.0... Building hyena-0.1.0... ar: creating archive dist/build/libHShyena-0.1.0.a [5 of 7] Compiling Hyena.Logging ( Hyena/Logging.hs, dist/build/hello- world/hello-world-tmp/Hyena/Logging.o ) [6 of 7] Compiling Hyena.Server ( Hyena/Server.hs, dist/build/hello- world/hello-world-tmp/Hyena/Server.o ) [7 of 7] Compiling Main ( ./Hyena/HelloWorld.hs, dist/build /hello-world/hello-world-tmp/Main.o ) Linking dist/build/hello-world/hello-world ... Installing: /Users/tibell/.cabal/lib/hyena-0.1.0/ghc-6.8.2 Installing: /Users/tibell/.cabal/bin Registering hyena-0.1.0... Reading package info from "dist/installed-pkg-config" ... done. Saving old package config file... done. Writing new package config file... done. }}} Instead of upgrading my installed packages it installed ''this'' package! Here are Cabal and cabal-install versions: {{{ $ cabal --version cabal-install version 0.4.4 using version 1.3.7 of the Cabal library }}} I've synced from HEAD today. Here are the latest patches I'm using. Cabal: {{{ Wed Mar 12 21:39:47 CET 2008 Duncan Coutts <duncan@haskell.org> * Fix search dirs used for pre-processing executables }}} and for cabal-install: {{{ Wed Mar 12 14:53:35 CET 2008 Duncan Coutts <duncan@haskell.org> * Parse filepaths in the config file the same way as in .cabal files }}} -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/260> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects