Bug 200410

Summary: createrepo fails if double // in path
Product: [Fedora] Fedora Reporter: Jesse Keating <jkeating>
Component: createrepoAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dcantrell
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-07-30 12:48:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jesse Keating 2006-07-27 15:20:10 UTC
File "/usr/share/createrepo/genpkgmetadata.py", line 607, in ?
    main(sys.argv[1:])
  File "/usr/share/createrepo/genpkgmetadata.py", line 544, in main
    mdgen.doPkgMetadata(directories)
  File "/usr/share/createrepo/genpkgmetadata.py", line 312, in doPkgMetadata
    filematrix[mydir] = self.getFileList(os.path.join(self.initialdir, mydir),
'.', '.rpm', [])
  File "/usr/share/createrepo/genpkgmetadata.py", line 85, in getFileList
    filelist = self.getFileList(basepath, os.path.join(path, d), ext, filelist)
  File "/usr/share/createrepo/genpkgmetadata.py", line 85, in getFileList
    filelist = self.getFileList(basepath, os.path.join(path, d), ext, filelist)
  File "/usr/share/createrepo/genpkgmetadata.py", line 93, in getFileList
    raise "basepath '%s' not found in path '%s'" % (basepath, totalpath)
basepath
'/mnt/redhat/devel/jkeating//FC5.90.1-re20060727.0/work/i386-tmp/os-disc1' not
found in path
'/mnt/redhat/devel/jkeating/FC5.90.1-re20060727.0/work/i386-tmp/os-disc1/Fedora/R
PMS'

Note the double slash.

Comment 1 Paul Nasrat 2006-07-27 15:24:02 UTC
Please give the full createrepo invocation.

Comment 2 Jesse Keating 2006-07-27 15:25:26 UTC
/usr/bin/createrepo -q --basedir
/mnt/redhat/devel/jkeating//FC5.90.1-re20060727.0/work/i386-tmp -p --split -g
/mnt/redhat/devel/jkeating//FC5.90.1-re20060727.0/5.90.1/
i386/os/Fedora/base/comps.xml -u media://1153977092.906568 --cachedir
/mnt/redhat/scripts/distill-cache/FC-5.90.1/i386/yum-md5sums --outputdir
/mnt/redhat/devel/jkeating//FC5.90.1-re2
0060727.0/work/i386-tmp/os-disc1 --exclude *debuginfo* os-disc1 os-disc2
os-disc3 os-disc4 os-disc5

Comment 3 Paul Nasrat 2006-07-27 15:39:49 UTC
Hmm I'd have thought os.path.normpath would have done the right thing, I'll
improve sanity checks for next upstream release.

Comment 4 Seth Vidal 2007-07-30 12:48:30 UTC
I'm pretty sure this one is taking care of. If only b/c it is a year later :)

closing - reopen if you think I'm wrong :)