[sbopkg-users] Install package error checking, options

Phillip Warner phillip.c.warner at gmail.com
Fri Feb 20 02:42:40 UTC 2009


It is good that the option to install packages now checks the
permisions and warns the user if they are not root:root.  However,
there is still the problem that sbopkg makes bad assumptions on what
package to install.

Let's say that you have to SBo packages in /tmp.  One is i486 and the
other is i686 (there can be other differences- the important thing is
that they are SBo packages for the same software).  You may want to
install the i686 version, but you are only given the option to install
the i486 version.

--- Solution - let the user pick from a list  ---
What should happen is that the menu should only display that one
package if it is the only one.  Otherwise, it should display something
like "choose...", and when you select "install" it should pop up a
list of all the matching packages with their corresponding 'ls -l'
output.  The default package selected would ideally be the one that
matches the build info from the last build for that software.

Once the desired package is selected the install process should
proceed as normal (including popping up a warning if root:root perms
are not present).

--- Minor cleanup on error checking needed ---
An interesting thing happens if the default package to be installed is
removed before "install" is selected.  You will get a couple of stat
errors and then the program complains that the package does not have
root:root perms (really it has none :)  ).  Then, when it tries to 'ls
-l' the package there is of course more nasty errors.  If you choose
to install it, it will obviously fail and no harm seems to be done.

--phillip


More information about the sbopkg-users mailing list