[svn] r5497 - trunk/tools/mrepo
packagers at lists.rpmforge.net
packagers at lists.rpmforge.net
Tue Jun 12 00:24:17 CEST 2007
Author: dag
Date: 2007-06-12 00:24:16 +0200 (Tue, 12 Jun 2007)
New Revision: 5497
Modified:
trunk/tools/mrepo/ChangeLog
trunk/tools/mrepo/mrepo
trunk/tools/mrepo/rhnget
Log:
Allow the RHN/up2date code to live in /usr/share/mrepo/rhn/ (Frederic Pica)
Modified: trunk/tools/mrepo/ChangeLog
===================================================================
--- trunk/tools/mrepo/ChangeLog 2007-06-11 17:55:23 UTC (rev 5496)
+++ trunk/tools/mrepo/ChangeLog 2007-06-11 22:24:16 UTC (rev 5497)
@@ -10,6 +10,8 @@
- Added amd64 as alias for x86_64 to accomodate Sun's Java packages (Tom G. Christensen)
- Check whether version of createrepo is older than 0.4.6 (Francois Aucamp)
- Check for directory when creating before symlinking into it (Bruno Cornec)
+- Allow the RHN/up2date code to live in /usr/share/mrepo/rhn/ (Frederic Pica)
+- Added arch ia32e as alias for x86_64
* 0.8.4 - Sint-Jacobsplein - released 13/12/2006
- Renamed Yam to mrepo (Matthew Hannigan)
Modified: trunk/tools/mrepo/mrepo
===================================================================
--- trunk/tools/mrepo/mrepo 2007-06-11 17:55:23 UTC (rev 5496)
+++ trunk/tools/mrepo/mrepo 2007-06-11 22:24:16 UTC (rev 5497)
@@ -12,7 +12,7 @@
### You should have received a copy of the GNU Library General Public License
### along with this program; if not, write to the Free Software
### Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-### Copyright 2004-2006 Dag Wieers <dag at wieers.com>
+### Copyright 2004-2007 Dag Wieers <dag at wieers.com>
import os, sys, glob, re, shutil, getopt, popen2
import ConfigParser, urlparse, sha, types, traceback
@@ -28,7 +28,7 @@
'i386': ('i386', 'i486', 'i586', 'i686', 'athlon'),
'ia64': ('i386', 'i686', 'ia64'),
'ppc': ('ppc', 'ppc64', 'ppc64pseries', 'ppc64iseries'),
- 'x86_64': ('i386', 'i486', 'i586', 'i686', 'athlon', 'x86_64', 'amd64'),
+ 'x86_64': ('i386', 'i486', 'i586', 'i686', 'athlon', 'x86_64', 'amd64', 'ia32e'),
's390': ('s390', ),
's390x': ('s390x', ),
}
@@ -121,6 +121,7 @@
def version(self):
print 'mrepo %s' % VERSION
print 'Written by Dag Wieers <dag at wieers.com>'
+ print 'Homepage at http://dag.wieers.com/home-made/mrepo/'
print
print 'platform %s/%s' % (os.name, sys.platform)
print 'python %s' % sys.version
Modified: trunk/tools/mrepo/rhnget
===================================================================
--- trunk/tools/mrepo/rhnget 2007-06-11 17:55:23 UTC (rev 5496)
+++ trunk/tools/mrepo/rhnget 2007-06-11 22:24:16 UTC (rev 5497)
@@ -17,11 +17,14 @@
import os, sys, shutil, getopt, ConfigParser, urlparse, types
import signal, xmlrpclib, getpass, glob, fnmatch
-if os.path.exists('/usr/share/rhn/') and os.path.exists('/usr/share/rhn/up2date_client/'):
+if os.path.exists('/usr/share/mrepo/rhn/') and os.path.exists('/usr/share/mrepo/rhn/up2date_client/'):
+ sys.path.insert(0, '/usr/share/mrepo/rhn/')
+ sys.path.insert(1, '/usr/share/mrepo/rhn/up2date_client/')
+elif os.path.exists('/usr/share/rhn/') and os.path.exists('/usr/share/rhn/up2date_client/'):
sys.path.insert(0, '/usr/share/rhn/')
sys.path.insert(1, '/usr/share/rhn/up2date_client/')
else:
- die(1,'up2date is not installed. Aborting execution')
+ die(1,'up2date libraries are not installed. Aborting execution')
from up2date_client import config, rpcServer, wrapperUtils, up2dateErrors, repoDirector
from rhn import rpclib
More information about the svn-commits
mailing list