From: Mark Williamson Subject: Re: Is Xend versioned? Date: Fri, 4 Jan 2008 18:08:20 +0000 Message-ID: <200801041808.20614.mark.williamson@cl.cam.ac.uk> References: <47681A9B.3020402@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <47681A9B.3020402@novell.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Jim Fehlig List-Id: xen-devel@lists.xenproject.org > When querying Xend for version this code is invoked in > tools/python/xen/xend/XendNode.py > > def xen_version(self): > info = self.xc.xeninfo() > > try: > from xen import VERSION > info = {'Xen': '%(xen_major)d.%(xen_minor)d' % info, > 'Xend': VERSION} > except (ImportError, AttributeError): > info = {'Xen': '%(xen_major)d.%(xen_minor)d' % info, > 'Xend': '3.0.3'} > > I cannot find a xen module from which to import VERSION, resulting in > the hardcoded one. I would cook up a patch if I understood how, or even > if, it should be versioned. You're right, I can't see what this is supposed to achieve... If you were to add: VERSION = "blah" to tools/python/xen/__init__.py then I imagine that would do the right thing. As for whether it's necessary, I'm not sure... But presumably that code ought either to do something or to be removed??? Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel!