Modify

Ticket #510 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

Update for pkgmgr_update.py

Reported by: lueningh Owned by: desai
Priority: major Milestone:
Component: bcfg2-client Version:
Keywords: Cc:

Description

The below patch makes pkgmgr_update.py use lxml instead of elementtree. That file should also be maked executable if you want to be really nice.

--- pkgmgr_update.py    (revision 4060)
+++ pkgmgr_update.py    (working copy)
@@ -19,7 +19,7 @@
 import optparse
 import datetime
 import glob
-from elementtree.ElementTree import parse, XML, fromstring, tostring
+from lxml.etree import parse, XML, fromstring, tostring
 import urlparse, urllib, gzip
 
 installOnlyPkgs = ['kernel', 'kernel-bigmem', 'kernel-enterprise', 'kernel-smp',

Attachments

Change History

comment:1 Changed 14 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed

Applied in [75a45a0280758a1ca6aa7c9b3d8dc2daddbdfc79] (SVN r4116). I also maked pkgmgr_update.py executable. This is queued for 0.9.5.X

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.