From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Timo Aaltonen Newsgroups: gmane.os.tru64.managers Subject: SUMMARY Re: unique patch-ID's? Date: Tue, 10 Sep 2002 23:30:45 +0300 (EET DST) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1031689863 18296 127.0.0.1 (10 Sep 2002 20:31:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2002 20:31:03 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 17orf2-0004kK-00 for ; Tue, 10 Sep 2002 22:31:00 +0200 Original-Received: (qmail 2437 invoked by uid 5); 10 Sep 2002 20:31:00 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 2428 invoked by uid 49493); 10 Sep 2002 20:31:00 -0000 Original-Received: from tjaalton@cc.hut.fi by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.24. Clear:. Processed in 0.400769 secs); 10 Sep 2002 20:31:00 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 10 Sep 2002 20:30:59 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H2800CXEOZH1U@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 10 Sep 2002 16:30:59 -0400 (EDT) Original-Received: from smtp-2.hut.fi (smtp-2.hut.fi [130.233.228.92]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTPS id <0H2800A47OZAD9@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 10 Sep 2002 16:30:48 -0400 (EDT) Original-Received: from nexus6.hut.fi (nexus6.hut.fi [130.233.200.93]) by smtp-2.hut.fi (8.12.6/8.12.6) with ESMTP id g8AKUjof014148 for ; Tue, 10 Sep 2002 23:30:45 +0300 In-reply-to: X-X-Sender: tjaalton@nexus6.hut.fi Original-To: tru64-unix-managers@ornl.gov Xref: main.gmane.org gmane.os.tru64.managers:1640 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1640 On Tue, 10 Sep 2002, Timo Aaltonen wrote: > Hi > > Is there a way to delete CSP/ERP's and _only_ those, because if I write > a cool script to delete those, some of the release patches get also > deleted because the patch-ID's aren't unique... (which, IMHO is pretty > stupid). Dupatch takes those ID's as 0414 etc, so there is no way of > telling dupatch to delete only patches, that have a 'C' in their names. > > for instance: > > replicant log 11 # setld -i |grep -i osfpat|grep 537 > OSFPAT00053700520 installed Patch: Security (SSRT1-40U, > SSRT1-41U, SSRT1-42U, SSRT1-48U)(Security Related Patches) > OSFPATC0053700520 installed Patch: Fix for SSRT2191, quot > (Security Related Patches) > > dupatch -delete ..... -patch 537 , would delete both patches.. which is > hardly what I'd want. > > Does anyone have a solution to this, or should dupatch be fixed? Thanks, John Jorgensen, Yaacov Fenster and Bob Vickers for your answers. It seems that the documentation is not up to date.. The patch-ID's are unique, if you realize that in batch mode the patch-ID should use the notation Cxxxx.yy, not plain xxxx.yy. something like: "setld -i | grep OSFPATC | grep -v not | sed -e 's/OSFPATC0/C/' | sed -e \ 's/[0-9][0-9]520.*//' | gsed -e ':a;N;$!ba;s/\n/ /g'" should do the trick in getting the ID's on one line in 5.1A (easy to put in the dupatch-datafile)... so, at least the man-page of dupatch should be updated, and possibly also the manual at http://www.tru64unix.compaq.com/docs/patch/install/HTML/TITLE.HTM the latter should contain instructions using dupatch not only interactively, but also in batch mode (Hompaq, you listening?-) ) t:T _______________/Timo Aaltonen Work: HUT-Computing Centre - UNIX, GSM +358-40-5549 618