Bug 113973

Summary: up2date --channel=foo --installall does nothing
Product: Red Hat Enterprise Linux 3 Reporter: Kevin Otte <kotte>
Component: up2dateAssignee: Adrian Likins <alikins>
Status: CLOSED ERRATA QA Contact: Fanny Augustin <fmoquete>
Severity: medium Docs Contact:
Priority: high    
Version: 3.0CC: crash, erikp, jlaska, mcarter, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-05-12 03:47:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to make installall work none

Description Kevin Otte 2004-01-20 20:53:00 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030922

Description of problem:
When I issue the command:
up2date --channel=helpdesk-ws3-laptop --installall
I get returned to a command prompt with no action having been taken.

Version-Release number of selected component (if applicable):
up2date-4.2.5-1

How reproducible:
Always

Steps to Reproduce:
1. run: up2date --channel=foo --installall
    

Actual Results:  Returned to command line, no action

Expected Results:  Retreival and installation of all packages in
requested channel.

Additional info:

Comment 1 Kevin Otte 2004-01-20 20:56:52 UTC
up2date --showall --channel=foo is also broken.

At this point we have no way of installing all packages in a requested
channel.

Comment 2 Adrian Likins 2004-01-20 21:48:04 UTC
fix is in up2date-4.2.7, whenever it becomes available.

Comment 3 Chip Turner 2004-01-20 22:01:13 UTC
There are a few workarounds.  The easiest for most users is:

up2date --showall --show-channel | grep CHANNEL-LABEL | perl -lane
'print $F[0]' | xargs up2date


Comment 4 Kevin Otte 2004-01-20 22:34:40 UTC
Actually, you still have to strip the version off $0.  The full
command would be something on the order of:

up2date $(up2date --showall --show-channel | grep CHANNEL-LABEL | perl
-lane 'print $F[0]'|sed -e 's/-[^-]*-[^-]*$//' | uniq)


Comment 6 Geoffrey D. Bennett 2004-03-04 14:40:12 UTC
Created attachment 98293 [details]
patch to make installall work

After running into this bug, but before I went searching in bugzilla, I came up
with this patch.  It's trivial to manually apply if you don't like the
workaround already given.

Comment 7 Michael J. Carter 2004-03-10 18:16:18 UTC
Any ETA on getting an errata out on this? The version that shipped w/
RHEL3 (up2date-4.0.1-1) didn't have this problem.



Comment 8 Adrian Likins 2004-03-22 21:34:09 UTC
u2 update pack will have a fix for this. 

Comment 9 Adrian Likins 2004-03-30 23:14:34 UTC
*** Bug 119071 has been marked as a duplicate of this bug. ***

Comment 10 John Flanagan 2004-05-12 03:47:37 UTC
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2004-138.html