Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98638 - webapp-config version compare broken
Summary: webapp-config version compare broken
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Stuart Herbert (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-11 02:28 UTC by Wendall Cada
Modified: 2005-07-14 09:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wendall Cada 2005-07-11 02:28:41 UTC
# webapp-config -U -h localhost -d phpwebsite/ 0.10.1-r1
 *   Cannot upgrade from phpwebsite-0.10.0-r2 to 0.10.1-r1-
 *   You can only upgrade to a later version of phpwebsite
 * 
 *   If you really do want to replace phpwebsite with 0.10.1-r1,
 *   please use /usr/sbin/webapp-config -C first

Fatal error:   Cannot upgrade to a completely different package
Fatal error(s) - aborting

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Wendall Cada 2005-07-11 02:29:42 UTC
Since this has a GLSA out on it. I think this could be considered a serious issue.

Wendall
Comment 2 Stuart Herbert (RETIRED) gentoo-dev 2005-07-13 16:00:18 UTC
This is user error, combined with a bug in the parameter checking.  The 
command you want is:

webapp-config -U -h localhost -d phpwebsite/ phpwebsite 0.10.1-r1

You missed out the 'phpwebsite', which tells webapp-config what app you want 
to upgrade to.  It's kinda silly that you have to tell it which app, but 
that's what you have to do.

I'll improve the error checking to catch this.  The check will appear in the 
next release of webapp-config.

Best regards,
Stu
Comment 3 Wendall Cada 2005-07-14 09:27:32 UTC
Great thanks Stuart. I figured I might be missing something. I was confused by
the error message. I assumed it would grab the application information from the
.webapp file in the directory. Maybe this should be the behavior of the
function? Dunno, that's up to you.

Wendall