Elan Ruusamäe | 1 May 2008 19:32
Picon
Favicon
Gravatar

Re: invalid filelists

On Monday 28 April 2008 16:48, seth vidal wrote:
> On Sat, 2008-04-26 at 16:45 +0300, Elan Ruusamäe wrote:
> > seems createrepo doesn't create valid xml files.
>
> what version of createrepo is this?
latest -- 0.9.5
was it that field ever encoded that you ask?

> > for obsoletes there was backage (with a mistake) whose had:
> > Obsoletes: XFree86-driver-trident<
> > Obsoletes: 1:7.0.0
>
> this seems like a problem in the package doesn't it?
yes package was invalid. and createrepo created invalid xml. rpm doesn't 
restrict what is put to obsoletes line. and this single package in made whole 
repodata invalid. this shouldn't happen!

> > the filelists bug, the package contains files whose pathnames contain
> > ampersands.
> >
> > [1] obsoletes
> > $ xmllint --noblanks --noout --dtdvalid primary.dtd primary.xml
> > primary.xml:514489: parser error : Unescaped '<' not allowed in
> > attributes values <rpm:entry
> >                  name="XFree86-driver-trident<"/>
>
> again - what version of createrepo?
same version.

> Can you make the pkg available so I can test it out?
(Continue reading)

James Antill | 12 May 2008 14:48

createrepo/__init__.py

 createrepo/__init__.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 5a5de05b5564d9f696f5999b66c1ae0c16c4322f
Author: James Antill <james <at> and.org>
Date:   Mon May 12 08:48:17 2008 -0400

    Pass just dir. to getFileList(), makes -C work. Fixes bug#446040

diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index 1d539b3..4fce0bd 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
 <at>  <at>  -258,7 +258,8  <at>  <at>  class MetaDataGenerator:
         """check the timestamp of our target dir. If it is not newer than the repodata
            return False, else True"""
         if self.conf.checkts:
-            files = self.getFileList(self.conf.basedir, self.conf.directory, '.rpm')
+            dn = os.path.join(self.conf.basedir, self.conf.directory)
+            files = self.getFileList(dn, '.rpm')
             files = self.trimRpms(files)
             for f in files:
                 fn = os.path.join(self.conf.basedir, self.conf.directory, f)
James Antill | 12 May 2008 14:49

createrepo/__init__.py genpkgmetadata.py

 createrepo/__init__.py |    1 -
 genpkgmetadata.py      |    4 ----
 2 files changed, 5 deletions(-)

New commits:
commit ba44f02f9c5f3e8363649c6d413cdb7c36fb1b4e
Author: James Antill <james <at> and.org>
Date:   Mon May 12 08:49:39 2008 -0400

    Remove -n option, it's a noop atm. anyway

diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index 4fce0bd..9c9659d 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
 <at>  <at>  -54,7 +54,6  <at>  <at>  class MetaDataConfig(object):
         self.baseurl = None
         self.groupfile = None
         self.sumtype = 'sha'
-        self.noepoch = False # hmm - maybe a fixme?
         self.pretty = False
         self.cachedir = None 
         self.use_cache = False
diff --git a/genpkgmetadata.py b/genpkgmetadata.py
index 88e9cb7..b12b868 100755
--- a/genpkgmetadata.py
+++ b/genpkgmetadata.py
 <at>  <at>  -50,10 +50,6  <at>  <at>  def parseArgs(args, conf):
                       help="path to groupfile to include in metadata")
     parser.add_option("-s", "--checksum", default="sha", dest='sumtype',
(Continue reading)

aneeskA | 26 May 2008 08:47
Picon
Gravatar

trouble with 'createrepo'

Hi All,

    I have 10 rpms with me which I want to distribute in a CD. They are dependent on each other. I dont want the user to list out all the rpms one by one and install or say 'rpm -i *'. When i give one rpm to install he will say that some thing else is not installed and exits. But yum looks at the dependencies and installs them at one go. So if i can do a localinstall on one rpm it will look up its dependencies (which is present n the same directory) and install all. For that i created repo data of the rpms using 'createrepo' program. but its not working. Yum with and without the repo data lists the dependencies and says Error:Missing Dependency and exits.

   What am I missing ?

Thanks and regards

-- anees

_______________________________________________
Rpm-metadata mailing list
Rpm-metadata <at> lists.dulug.duke.edu
https://lists.dulug.duke.edu/mailman/listinfo/rpm-metadata
aneeskA | 26 May 2008 09:03
Picon
Gravatar

Re: trouble with 'createrepo'

Hi All,

   A small update from me. I changed the baseurl to point to the directory where my RPMs reside. when run 'yum localinstall' an error pos up :- 'Cannot open/read repomd.xml file for repository" Any ideas ?

Thanks and regards

-- anees

On Mon, May 26, 2008 at 12:17 PM, aneeskA <aneeska2k5 <at> gmail.com> wrote:
Hi All,

    I have 10 rpms with me which I want to distribute in a CD. They are dependent on each other. I dont want the user to list out all the rpms one by one and install or say 'rpm -i *'. When i give one rpm to install he will say that some thing else is not installed and exits. But yum looks at the dependencies and installs them at one go. So if i can do a localinstall on one rpm it will look up its dependencies (which is present n the same directory) and install all. For that i created repo data of the rpms using 'createrepo' program. but its not working. Yum with and without the repo data lists the dependencies and says Error:Missing Dependency and exits.

   What am I missing ?

Thanks and regards

-- anees

_______________________________________________
Rpm-metadata mailing list
Rpm-metadata <at> lists.dulug.duke.edu
https://lists.dulug.duke.edu/mailman/listinfo/rpm-metadata
aneeskA | 26 May 2008 09:40
Picon
Gravatar

Re: trouble with 'createrepo'

OK. I think i will answer my own question.

In order to localinstall a number of RPMs which are present inside a local directory do this :-

create a .repo file in /etc/yum.repos.d/

file format :-

[tag]
name=name
baseurl=path

Thanks and regards
-- anees

On Mon, May 26, 2008 at 12:33 PM, aneeskA <aneeska2k5 <at> gmail.com> wrote:
Hi All,

   A small update from me. I changed the baseurl to point to the directory where my RPMs reside. when run 'yum localinstall' an error pos up :- 'Cannot open/read repomd.xml file for repository" Any ideas ?

Thanks and regards

-- anees


On Mon, May 26, 2008 at 12:17 PM, aneeskA <aneeska2k5 <at> gmail.com> wrote:
Hi All,

    I have 10 rpms with me which I want to distribute in a CD. They are dependent on each other. I dont want the user to list out all the rpms one by one and install or say 'rpm -i *'. When i give one rpm to install he will say that some thing else is not installed and exits. But yum looks at the dependencies and installs them at one go. So if i can do a localinstall on one rpm it will look up its dependencies (which is present n the same directory) and install all. For that i created repo data of the rpms using 'createrepo' program. but its not working. Yum with and without the repo data lists the dependencies and says Error:Missing Dependency and exits.

   What am I missing ?

Thanks and regards

-- anees


_______________________________________________
Rpm-metadata mailing list
Rpm-metadata <at> lists.dulug.duke.edu
https://lists.dulug.duke.edu/mailman/listinfo/rpm-metadata

Gmane