Package: golang-github-jessevdk-go-flags-dev
Version: 1.1-1
Severity: grave
Control: tag -1 patch

Dear Maintainer,

when trying to install golang-github-jessevdk-go-flags-dev, I got the
following error:

,----
| Preparing to unpack .../0-golang-github-jessevdk-go-flags-dev_1.1-1_all.deb 
...
| Unpacking golang-github-jessevdk-go-flags-dev (1.1-1) ...
| dpkg: error processing archive 
/tmp/apt-dpkg-install-XO4p4v/0-golang-github-jessevdk-go-flags-dev_1.1-1_all.deb
 (--unpack):
|  trying to overwrite 
'/usr/share/gocode/src/github.com/jessevdk/go-flags/arg.go', which is also in 
package golang-go-flags-dev 0.0~git20160302-1
`----

At least a Breaks/Replaces is needed; Since golang-go-flags-dev is
superseeded by this package, it might also make sense to add a
transitional package. (In this case, you should make Brekas/Replaces
versioned.)

Cheers,
-Hilko
>From 84ddd477f3b6754209bd8701f5a8cb29dbb5aa07 Mon Sep 17 00:00:00 2001
From: Hilko Bengen <ben...@debian.org>
Date: Tue, 13 Dec 2016 00:36:20 +0100
Subject: [PATCH] Add Brekas/Replaces: golang-go-flags-dev

---
 debian/control | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/control b/debian/control
index f6e368f..f38bdf7 100644
--- a/debian/control
+++ b/debian/control
@@ -17,6 +17,8 @@ Architecture: all
 Depends: ${shlibs:Depends},
          ${misc:Depends},
          golang-go
+Breaks: golang-go-flags-dev
+Replaces: golang-go-flags-dev
 Description: Go library for parsing command line arguments
  This library provides similar functionality to the builtin flag library
  of go, but provides much more functionality and nicer formatting. From
-- 
2.11.0

_______________________________________________
Pkg-go-maintainers mailing list
Pkg-go-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers

Reply via email to