Summary: Creates a common metadata repository
Name: createrepo
-Version: 0.3
+Version: 0.3.1
Release: 1
License: GPL
Group: System Environment/Base
%{_bindir}/%{name}
%changelog
+* Sun Jan 18 2004 Seth Vidal <skvidal@phy.duke.edu>
+- I'm an idiot
+
* Sun Jan 18 2004 Seth Vidal <skvidal@phy.duke.edu>
- 0.3
workfiles.append((cmds['groupfile'], 'group'))
for (file, ftype) in workfiles:
- csum = getChecksum(sumtype, file)
- timestamp = os.stat(file)[8]
+ csum = getChecksum(sumtype, os.path.join(cmds['tempdir'], file))
+ timestamp = os.stat(os.path.join(cmds['tempdir'], file))[8]
data = node.newChild(None, 'data', None)
data.newProp('type', ftype)
location = data.newChild(None, 'location', None)
if cmds['baseurl'] is not None:
location.newProp('xml:base', cmds['baseurl'])
- location.newProp('href', file)
+ location.newProp('href', os.path.join(cmds['finaldir'], file))
checksum = data.newChild(None, 'checksum', csum)
checksum.newProp('type', sumtype)
timestamp = data.newChild(None, 'timestamp', str(timestamp))
return rpms
def checkAndMakeDir(dir):
- """check out the dir and make it, if possible, return 1 if done, else return 0"""
+ """
+ check out the dir and make it, if possible, return 1 if done, else return 0
+ """
if os.path.exists(dir):
if not os.path.isdir(dir):
errorprint(_('%s is not a dir') % dir)