Skip to main content

Source code Changes To

pkg-gate / src / modules / fmri.py

From revision 2955 to 2958:

diff -r 796cde775790 -r 868e07939116 src/modules/fmri.py
--- a/src/modules/fmri.py	Fri Sep 27 10:19:27 2013 +1200
+++ b/src/modules/fmri.py	Fri Sep 27 11:38:34 2013 -0700
@@ -336,7 +336,7 @@
                 return "pkg://%s/%s%s" % (publisher, self.pkg_name, version)
 
         def get_fmri(self, default_publisher=None, anarchy=False,
-            include_scheme=True):
+            include_scheme=True, include_build=True):
                 """Return a string representation of the FMRI.
                 Anarchy returns a string without any publisher."""
                 pkg_str = ""
@@ -352,7 +352,8 @@
                                 return "%s%s" % (pkg_str, self.pkg_name)
 
                         return "%s%s@%s" % (pkg_str, self.pkg_name,
-                            self.version)
+                            self.version.get_version(
+                                include_build=include_build))
 
                 if include_scheme:
                         pkg_str = "pkg://"
@@ -360,7 +361,7 @@
                         return "%s%s/%s" % (pkg_str, publisher, self.pkg_name)
 
                 return "%s%s/%s@%s" % (pkg_str, publisher, self.pkg_name,
-                                self.version)
+                    self.version.get_version(include_build=include_build))
 
         def hierarchical_names(self):
                 """Generate the different hierarchical names that could be used

 
 
Close
loading
Please Confirm
Close