On 7/23/06, André Detsch <[EMAIL PROTECTED]> wrote:
CVSROOT: /sources/goboscripts
Module name: tools
Changes by: André Detsch <detsch> 06/07/23 03:36:38
Modified files:
Scripts/bin : CheckDependencies
Log message:
Better question messages.
Placed 'main' inside a 'try: except' block for KeyboardInterrupt.
Added --quiet-progress option.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/tools/Scripts/bin/CheckDependencies?cvsroot=goboscripts&r1=1.8&r2=1.9
Patches:
Index: CheckDependencies
===================================================================
RCS file: /sources/goboscripts/tools/Scripts/bin/CheckDependencies,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- CheckDependencies 4 Jun 2006 00:59:38 -0000 1.8
+++ CheckDependencies 23 Jul 2006 03:36:38 -0000 1.9
@@ -214,15 +214,28 @@
def ask_if_install(match) :
p,v,t,u=match
global global_allways_do
+
+ installed = FindPackage(p,types=['installed'])
+ if installed :
+ reason = p + " is installed, but version "+installed[0][1]+" does
not match given dependency."
+ else :
+ reason = p + " is not installed."
How do we handle blacklists here? It's now asking for Glibc, even
though it's blacklisted at Dependencies.blacklist.
@@ -233,13 +246,14 @@
Import Log
export scriptName=CheckDependencies
echo >&2
-Ask_Option "Install %s %s %s or skip this dependency? [I]nstall/[S]kip/[IA]Install
All/[SA]Skip All"
-echo "$REPLY"'''%(p,v,t))
- r = f.read()[8:].strip().lower()
+Log_Question "%s"
+Ask_Option "%s %s %s %s or skip this dependency? [Y]es/[N]o/[NA]No to All/[YA]Yes
to All"
+echo "$REPLY"'''%(reason,action,p,v,t))
+ r = f.read()[16:].strip().lower()
The questions become a little strange with this modification:
CheckDependencies: Compile Glibc 2.4 recipe or skip this dependency?
[Y]es/[N]o/[NA]No to All/[YA]Yes to All
--
Lucas
powered by /dev/dsp
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel