Forum: CFEngine Help Subject: Re: Cfengine Help: Re: Advice on using package promises Author: jgreer Link to topic: https://cfengine.com/forum/read.php?3,22694,22725#msg-22725
Thanks, Bas and Mark, for your attention to this - much appreciated. I'll rebuild from trunk and retest. Some thoughts - -- I've discovered that dpkg has its own comparison function for version strings: ; dpkg --compare-versions 2.30.2-0ubuntu1 le 2.31.0-0ubuntu1 ; echo $? 0 ; dpkg --compare-versions 2.30.2-0ubuntu1 le 2.29.0-0ubuntu1 ; echo $? 1 What are your thoughts on adding a feature to optionally define an external command to perform comparison, bypassing Cfengine's internal version comparison logic? Seems that, where possible, letting the package managers themselves do this work would be useful. I don't know whether other smart package managers provide this functionality, but I've put in a ticket with Red Hat to ask them whether there's an equivalent in yum/rpm. -- The special topics guide is helpful. Thanks, Mark, for setting this up. Examples where the promiser is in a long format (name-ver[-rel].arch) and corresponding package_method bodies that set the appropriate regexes would be helpful too, I think. -- I'll add that it is possible for a yum repository to contain multiple RPM's for the same package. Yum does not display them by default; you must supply "--showduplicates" to view versions older than current. I've been successful in pulling both 1.0.11 and 1.0.15 of wireshark from redhat-updates to test all this. -Jessica _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine