Gentoo Archives: gentoo-user

From: Dan Johansson <dan@×××.nu>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Changed behavior of webapp-config
Date: Mon, 26 Oct 2015 20:38:39
Message-Id: 562E8F3A.7060707@dmj.nu
1 The other day I noticed that the behavior of webapp-config has changed.
2 I have USE=vhost enabled and I have a directory structure where each
3 "app" is installed in htdocs in its own v-host like this:
4
5 /var/www/app-1.int.dmj.nu/htdocs/
6 /var/www/app-2.int.dmj.nu/htdocs/
7
8 Before I could simply do the following to upgrade an app
9 # webapp-config -h app-1.int.dmj.nu -U app-1 1.2.3
10
11 And this would update the app-1 in /var/www/app-1.int.dmj.nu to version
12 1.2.3
13 (note, there is NO -d for directory in there)
14
15 Doing this now results in this:
16 * Install dir flag not supplied, defaulting to "app-1".
17 * Fatal error: Cannot clean!
18 * Fatal error: No package installed in
19 /var/www/app-1.int.dmj.nu/htdocs/app-1
20 * Fatal error(s) - aborting
21
22 I have played around a bit and found that if I add "-d ." it does update
23 the application correct but with some messages (sorry I do not have them
24 at hand now) about webapp-config not able to "clean" the old version.
25 And worse still, I then get two "active" entries in the webapp-config DB
26 (/var/db/webapps/app-1/<version>/installs):
27
28 One for the old version:
29 123456789 0 0 /var/www/app-1.int.dmj.nu/htdocs
30
31 And one for the new
32 0987654321 0 0 /var/www/app-1.int.dmj.nu/htdocs/.
33
34 Any suggestions on how to make the "new" webapp-config behave like the
35 "old" one (short of downgrading of cause)?
36
37 KR
38 --
39 Dan Johansson
40 ***************************************************
41 This message is printed on 100% recycled electrons!
42 ***************************************************

Replies

Subject Author
Re: [gentoo-user] Changed behavior of webapp-config Mick <michaelkintzios@×××××.com>