From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 11 22:39:27 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E163B37B401 for ; Fri, 11 Jul 2003 22:39:27 -0700 (PDT) Received: from albatross.mail.pas.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3688F43FB1 for ; Fri, 11 Jul 2003 22:39:27 -0700 (PDT) (envelope-from andrei@andruxa.sytes.net) Received: from h-68-164-94-33.snvacaid.covad.net ([68.164.94.33] helo=andruxa.sytes.net) by albatross.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 19bD6U-00016s-00 for freebsd-hackers@freebsd.org; Fri, 11 Jul 2003 22:39:26 -0700 Received: from andruxa.sytes.net (localhost [127.0.0.1]) by andruxa.sytes.net (8.12.9/8.12.6) with ESMTP id h6C5cw87005749 for ; Fri, 11 Jul 2003 22:38:58 -0700 (PDT) (envelope-from andrei@andruxa.sytes.net) Received: (from andrei@localhost) by andruxa.sytes.net (8.12.9/8.12.9/Submit) id h6C5crvm005748 for freebsd-hackers@freebsd.org; Fri, 11 Jul 2003 22:38:53 -0700 (PDT) Date: Fri, 11 Jul 2003 22:38:52 -0700 From: Andrew Konstantinov To: freebsd-hackers@freebsd.org Message-ID: <20030712053852.GA5660@andruxa.sytes.net> Mail-Followup-To: Andrew Konstantinov , freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="wac7ysb48OaltWcw" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: portupgrade X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: abkonstantinov@earthlink.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jul 2003 05:39:28 -0000 --wac7ysb48OaltWcw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I've written a simple script to make my life easier, but there is a probl= em with that script and I can't figure out the source of that problem. if [ "$variables" !=3D "" ]; then echo "portupgrade -m '$variables' $progname" (portupgrade -m \'$variables\' $progname) else echo "portupgrade $progname" (portupgrade $progname) fi The problem is simple. Whenever this script confronts a program which nee= ds to be upgraded, portupgrade removes the old version and then script term= inates without any error messages, while several instances of bash and link= er continue to run in the background for several seconds, and then also ter= minate. The new version of the program never gets installed. What I can't u= nderstand is the reason why the script terminates without any error message= s while it still has several cycle to go. It doesn't terminate if there are= n't any programs that need to be upgraded (portupgrade simply responds with= the message that there is nothing to upgrade), and goes through the same c= ycles without spitting out any error messages. My guess is that something w= eird happens when portupgrade starts to install the upgraded version of the= removed program, but I have no idea what exactly that is. I'd be more than= thankful if you could point out the place where I do something in a wrong = way. I also have attached a full version of that script, in case if you wan= t to take a look at it. Thanks --wac7ysb48OaltWcw--