ok - so how does it work???

karsten <[email protected]>
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
I can't get createrepo to work - sigh.

I created a little repository to test on, containing only one file.
Then I ran createrepo, but the resulting xml files contains no 
mentioning of the file.
Obviously I am doing something wrong - what?
(don 't min the header stuff - I need backwards compatability so I am 
using yum-arch as well)

The setup:
ls  -lR
.:
total 8
drwxrwxr-x    3 yum      yum          4096 Mar  2 20:49 rpms
lrwxrwxrwx    1 yum      yum             3 Mar  2 08:54 RPMS.yum -> yum
drwxrwxr-x    3 yum      yum          4096 Mar  2 20:48 yum

./rpms:
total 8260
drwxrwxr-x    2 yum      yum          4096 Mar  2 20:49 repodata
-rw-rw-r--    1 yum      yum       8435083 Mar  2 16:53 vlc-0.8.1-1.i386.rpm
-rw-rw-r--    1 yum      yum           574 Mar  2 20:48 
vlc-0.8.1-1.i386.rpm.lsm

./rpms/repodata:
total 16
-rw-rw-r--    1 yum      yum           151 Mar  2 20:49 filelists.xml.gz
-rw-rw-r--    1 yum      yum           146 Mar  2 20:49 other.xml.gz
-rw-rw-r--    1 yum      yum           157 Mar  2 20:49 primary.xml.gz
-rw-rw-r--    1 yum      yum           951 Mar  2 20:49 repomd.xml

./yum:
total 4
drwxrwxr-x    2 yum      yum          4096 Mar  2 20:48 headers
lrwxrwxrwx    1 yum      yum            16 Mar  2 20:39 repodata -> 
../rpms/repodata
lrwxrwxrwx    1 yum      yum             7 Mar  2 08:54 RPMS.yum -> ../rpms

./yum/headers:
total 20
-rw-rw-r--    1 yum      yum            49 Mar  2 20:48 header.info
-rw-rw-r--    1 yum      yum         15921 Mar  2 16:53 
vlc-0-0.8.1-1.i386.hdr


createrepo was executed from . as
createrepo -v rpms/



The content of the repodata files are:

zcat filelists.xml.gz
<?xml version="1.0" encoding="UTF-8"?>
<filelists xmlns="http://linux.duke.edu/metadata/filelists" packages="1">


</filelists>


zcat other.xml.gz
<?xml version="1.0" encoding="UTF-8"?>
<otherdata xmlns="http://linux.duke.edu/metadata/other" packages="1">


</otherdata>


zcat primary.xml.gz
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://linux.duke.edu/metadata/common" 
xmlns:rpm="http://linux.duke.edu/metadata/rpm" packages="1">


</metadata>


 cat repomd.xml
<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo">
  <data type="other">
    <location href="repodata/other.xml.gz"/>
    <checksum type="sha">718216d9f6809251f0d49f00289b31878ab53fdf</checksum>
    <timestamp>1109825340</timestamp>
    <open-checksum 
type="sha">2618bcff40b1616f9fbb5ca2d6cef18facc9a131</open-checksum>
  </data>
  <data type="filelists">
    <location href="repodata/filelists.xml.gz"/>
    <checksum type="sha">1bd70136b15faff9e4b9f94195a0fb7bd353c405</checksum>
    <timestamp>1109825340</timestamp>
    <open-checksum 
type="sha">dc078955c5140b245b1391369f6922b08308f04b</open-checksum>
  </data>
  <data type="primary">
    <location href="repodata/primary.xml.gz"/>
    <checksum type="sha">a58ff8cbe6a66875da37094c9eed9b548dfaba01</checksum>
    <timestamp>1109825340</timestamp>
    <open-checksum 
type="sha">3440b7855c4867de5a383d960876c4c018dcd20c</open-checksum>
  </data>
</repomd>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.