Bug 7351 - Up2date batch requires X
Up2date batch requires X
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: up2date (Show other bugs)
6.1
All Linux
medium Severity low
: ---
: ---
Assigned To: Preston Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-11-26 11:28 EST by Ash
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-02-24 13:44:05 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ash 1999-11-26 11:28:53 EST
I use Redhat for a few remote firewall and standalone servers where I do
not bother to install X on the system. Also I am many times supporting
these machines remotely over ssh regardless of X being installed or not.

Up2date, even in batch mode, requires the existance of X. This makes it
impossible to use on several of the systems I administer. Unfortunately the
change to gpg signatures, while a GoodThing(tm), breaks freshrpms, the
other such tool that came out a while back.

This leaves me with -no- way to remotely upgrade packages on a Redhat 6.1
system.
Comment 1 Jonathan Kamens 1999-12-16 06:24:59 EST
I don't know if the following patch fixes *all* the dependencies on X, but it
fixes at least one that I discovered while attempting to use up2date in batch
mode last night -- it prevents up2date from trying to update the GUI progres bar
when that progress bar doesn't exist.

--- /usr/share/up2date/client.py	Wed Nov  3 15:21:48 1999
+++ /tmp/up2date/client.py	Thu Dec 16 06:30:26 1999
@@ -134,23 +134,22 @@
 	    return cid

     def setProgress(self, amount, total):
+	if not self.gui:
+	    return
 	threads_enter()
 	self.gui.progressBar.set_activity_mode(FALSE)
 	threads_leave()
-	if not self.gui:
-	    return
-	else:
-	    if total != 0:
-		i = (amount + 1.0) / total
-		if i > 1:
-		    i = 1.0
-		elif i < 0:
-		    i = 0
-	    else:
+	if total != 0:
+	    i = (amount + 1.0) / total
+	    if i > 1:
+		i = 1.0
+	    elif i < 0:
 		i = 0
-	    threads_enter()
-	    self.gui.progressBar.update(i)
-	    threads_leave()
+	else:
+	    i = 0
+	threads_enter()
+	self.gui.progressBar.update(i)
+	threads_leave()

     def setActivity(self):
 	threads_enter()
Comment 2 Preston Brown 2000-02-24 13:44:59 EST
fixed for 6.2.

Note You need to log in before you can comment on or make changes to this bug.