src/modules/actions/depend.py
changeset 1146 7c10e9798405
parent 1100 22a8b08d460a
child 1234 d9885dff5d16
--- a/src/modules/actions/depend.py	Thu Jun 11 15:43:17 2009 -0700
+++ b/src/modules/actions/depend.py	Thu Jun 11 16:49:31 2009 -0700
@@ -255,14 +255,17 @@
                 # it creating a dummy timestamp.  So we have to split it apart
                 # manually.
                 #
-                # XXX This code will need to change once we start using fmris
-                # with publishers.
+                # XXX This code will need to change if we start using fmris
+                # with publishers in dependencies.
                 #
                 if pfmri.startswith("pkg:/"):
                         pfmri = pfmri[5:]
                 # Note that this creates a directory hierarchy!
-                pfmri = urllib.quote(pfmri, "@").replace("@", "/")
+                inds = [
+                        ("depend", ctype, pfmri, None)
+                ]
 
-                return [
-                        ("depend", None, pfmri, None)
-                ]
+                if "@" in pfmri:
+                        stem = pfmri.split("@")[0]
+                        inds.append(("depend", ctype, stem, None))
+                return inds