Bug 835565 - createrepo with --update changes some paths in filelists
createrepo with --update changes some paths in filelists
Product: Fedora
Classification: Fedora
Component: createrepo (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Fedora Packaging Toolset Team
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-06-26 09:43 EDT by Tomas Mlcoch
Modified: 2014-01-21 18:22 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-11-26 09:10:10 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch (1.10 KB, patch)
2012-11-26 04:28 EST, Tomas Mlcoch
no flags Details | Diff

  None (edit)
Description Tomas Mlcoch 2012-06-26 09:43:02 EDT
Description of problem:
Createrepo with --update option does pointless and useless changes of some paths in filelists.(xml|sqlite)

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. mkdir ~/repo && cd ~/repo
2. wget http://fedora.mirrors.tds.net/pub/fedora/releases/17/Fedora/x86_64/os/Packages/f/filesystem-3-2.fc17.x86_64.rpm && wget http://fedora.mirrors.tds.net/pub/fedora/releases/17/Fedora/source/SRPMS/n/nc-1.103-3.fc17.src.rpm
3. createrepo .
   (repodata are fine, every path have only one or none leading slash)
4. createrepo --update .
   (since now, some paths have extra leading slash)
Actual results:
Some paths in updated filelists.xml have "//" or "./" as prefix.

Expected results:
All paths are same like before update.

Few lines from filelists.xml:

    filesystem-3-2.fc17.x86_64.rpm package:
    BEFORE update:
    <file type="dir">/</file>
    <file type="dir">/boot</file>

    AFTER update:
    <file type="dir">//</file>
    <file type="dir">//boot</file>

    nc-1.103-3.fc17.src.rpm package:
    BEFORE update:

    AFTER update:
Comment 1 Tomas Mlcoch 2012-11-26 04:28:17 EST
Created attachment 651827 [details]

Comment 2 Zdeněk Pavlas 2012-11-26 09:10:10 EST
Merged, thanks!

Note You need to log in before you can comment on or make changes to this bug.