Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Oct 2018 21:06:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 232412] pkg: message during upgrade "You may need to manually remove <configfile> if it is no longer needed."
Message-ID:  <bug-232412-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232412

            Bug ID: 232412
           Summary: pkg: message during upgrade "You may need to manually
                    remove <configfile> if it is no longer needed."
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: stb@lassitu.de

When upgrading packages with pkg, for some packages a message is emitted du=
ring
the upgrade like the following:

[3/3] Fetching gitea-1.5.2.txz: 100%   15 MiB  15.3MB/s    00:01=20=20=20=20
...
[3/3] Upgrading gitea from 1.5.1 to 1.5.2...
=3D=3D=3D> Creating groups.
Using existing group 'git'.
=3D=3D=3D> Creating users
Using existing user 'git'.
[3/3] Extracting gitea-1.5.2: 100%
Stopping gitea.
Waiting for PIDS: 2440, 2440.
You may need to manually remove /usr/local/etc/gitea/conf/app.ini if it is =
no
longer needed.

I assume this message is produced when de-installing the previous version, =
but
it's not obvious to the casual user where it comes from, or why it's emitte=
d.
Since the package continues to be installed, the config file is in fact sti=
ll
needed, and deleting it would likely make the installed package unusable.

Ideally, the message would only be emitted when deinstalling a package. For
upgrades, the message should only be shown if the file in question is actua=
lly
not part of the new version anymore. Otherwise, nothing should be printed.

# pkg info -I pkg
pkg-1.10.5_5                   Package manager
# uname -a
FreeBSD repo.zs64.net 11.2-STABLE FreeBSD 11.2-STABLE #10 r338650: Thu Sep =
13
16:53:15 UTC 2018     root@redacted  amd64

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232412-7788>