[Hackage] #260: cabal upgrade runs install on the current package instead of upgrading installed packages

#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

#260: cabal upgrade runs install on the current package instead of upgrading installed packages ---------------------------------+------------------------------------------ Reporter: tibbe | Owner: Type: defect | Status: new Priority: normal | Milestone: Cabal-1.4 Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: Linux ---------------------------------+------------------------------------------ Changes (by duncan): * milestone: => Cabal-1.4 Comment: Hmm, that's a surprise. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/260#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#260: cabal upgrade runs install on the current package instead of upgrading
installed packages
---------------------------------+------------------------------------------
Reporter: tibbe | Owner:
Type: defect | Status: closed
Priority: normal | Milestone: Cabal-1.4
Component: cabal-install tool | Version: HEAD
Severity: normal | Resolution: fixed
Keywords: | Difficulty: normal
Ghcversion: 6.8.2 | Platform: Linux
---------------------------------+------------------------------------------
Changes (by duncan):
* status: new => closed
* resolution: => fixed
Comment:
Should be fixed now.
{{{
Sat May 10 19:59:20 BST 2008 Duncan Coutts
participants (1)
-
Hackage