Bug 835565 - createrepo with --update changes some paths in filelists
Summary: createrepo with --update changes some paths in filelists
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: createrepo
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Packaging Toolset Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-26 13:43 UTC by Tomas Mlcoch
Modified: 2014-01-21 23:22 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-26 14:10:10 UTC
Type: Bug
Embargoed:


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

Description Tomas Mlcoch 2012-06-26 13:43:02 UTC
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):
createrepo-0.9.9-11.fc18.noarch.rpm
yum-3.4.3-29.fc18.noarch.rpm
yum-utils-1.1.31-5.fc18.noarch.rpm

How reproducible:
always

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>/bin</file>
    <file>/lib</file>
    <file>/lib64</file>
    <file>/sbin</file>
    <file>/usr/tmp</file>
    <file>/var/mail</file>
    <file type="dir">/</file>
    <file type="dir">/boot</file>

    AFTER update:
    <file>//bin</file>
    <file>//lib</file>
    <file>//lib64</file>
    <file>//sbin</file>
    <file>/usr/tmp</file>
    <file>/var/mail</file>
    <file type="dir">//</file>
    <file type="dir">//boot</file>

    nc-1.103-3.fc17.src.rpm package:
    ------------------------------------
    BEFORE update:
    <file>b64_ntop.c</file>
    <file>nc-1.100-check-accept.patch</file>
    <file>nc-1.100-comma.patch</file>
    <file>nc-1.100-format-size_t.patch</file>
    <file>nc-1.100-initialize-range.patch</file>
    <file>nc-1.100-libbsd.patch</file>
    <file>nc-1.100-pollhup.patch</file>
    <file>nc-1.100-udp-portscan.patch</file>
    <file>nc-1.100-udp-stop.patch</file>
    <file>nc-1.101-linux-ify.patch</file>
    <file>nc-1.103-crlf.patch</file>
    <file>nc-1.103-iptos-class.patch</file>
    <file>nc-1.103.tar.bz2</file>
    <file>nc.spec</file>

    AFTER update:
    <file>./b64_ntop.c</file>
    <file>./nc-1.100-check-accept.patch</file>
    <file>./nc-1.100-comma.patch</file>
    <file>./nc-1.100-format-size_t.patch</file>
    <file>./nc-1.100-initialize-range.patch</file>
    <file>./nc-1.100-libbsd.patch</file>
    <file>./nc-1.100-pollhup.patch</file>
    <file>./nc-1.100-udp-portscan.patch</file>
    <file>./nc-1.100-udp-stop.patch</file>
    <file>./nc-1.101-linux-ify.patch</file>
    <file>./nc-1.103-crlf.patch</file>
    <file>./nc-1.103-iptos-class.patch</file>
    <file>./nc-1.103.tar.bz2</file>
    <file>./nc.spec</file>

Comment 1 Tomas Mlcoch 2012-11-26 09:28:17 UTC
Created attachment 651827 [details]
Patch

Patch

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


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