Re: more Core dependency data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2006-06-28 at 19:17 -0400, Bill Nottingham wrote:
> Rex Dieter (rdieter@xxxxxxxxxxxx) said: 
> > The reason for their not showing up as dependencies is because kdebase 
> > atm uses *file* dependences not rpm/pkg ones:
> > Requires: /etc/X11/xdm/Xaccess
> > Requires: /etc/X11/xdm/Xservers
> > Requires: /etc/X11/xdm/Xwilling
> > Requires: /etc/X11/xinit/Xsession
> > Requires: /etc/X11/xdm/Xsetup_0
> 
> Aha. repoquery does not appear to show these deps correctly.

Ah, indeed. Fixed in CVS head and patch attached (against yum-utils 0.6
repoquery but applies to cvs head as well)

	- Panu -
--- /usr/bin/repoquery	2006-05-07 05:20:57.000000000 +0300
+++ repoquery	2006-06-29 12:46:49.000000000 +0300
@@ -167,6 +167,9 @@
     def fmt_obsoletes(self, **kw):
         return "\n".join(self.prco('obsoletes'))
 
+    def fmt_list(self, **kw):
+        return "\n".join(self.files())
+
 class repoPkgQuery(pkgQuery):
     def __init__(self, pkg, qf):
         pkgQuery.__init__(self, pkg, qf)
@@ -184,7 +187,7 @@
         rplist.sort()
         return rplist
 
-    def fmt_list(self, **kw):
+    def files(self, **kw):
         fdict = {}
         for ftype in self.pkg.returnFileTypes():
             for file in self.pkg.returnFileEntries(ftype):
@@ -193,7 +196,7 @@
                 fdict[os.path.normpath('//%s' % file)] = None
         files = fdict.keys()
         files.sort()
-        return "\n".join(files)
+        return files
 
     def fmt_changelog(self, **kw):
         changelog = []
@@ -236,8 +239,8 @@
         prcolist.sort()
         return prcolist
     
-    def fmt_list(self, **kw):
-        return "\n".join(self.pkg.tagByName('filenames'))
+    def files(self, **kw):
+        return self.pkg.tagByName('filenames')
 
     def fmt_changelog(self, **kw):
         changelog = []
@@ -425,6 +428,7 @@
         if self.options.alldeps:
             for pkg in self.returnByName(name):
                 provs.extend(pkg.prco("provides"))
+                provs.extend(pkg.files())
 
         for prov in provs:
             # Only look at the providing name, not the whole version. This 
@@ -585,6 +589,8 @@
         if not opts.group:
             needfiles = 1
         pkgops.append("list")
+    if opts.alldeps:
+        needfiles = 1
     if opts.info:
         pkgops.append("info")
     if opts.envra:

[Index of Archives]     [Fedora Users]     [Fedora Development]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux