** Description changed:
$ how-many-binary -a amd64 -r xenial
0
+ Regardless of all tags & arguments
- Regardless of all tags & arguments
+ == SRU ==
+
+ [IMPACT]
+
+ The how-many-binary command doesn't actually work, now that xenial is
+ released and yakkety is open, as it used distro-info.
+
+ [TEST CASE]
+
+ $ how-many-binary
+ 0
+
+ It should return something more like:
+
+ $ how-man-binary
+ 53837
+
+ The fix is to use /etc/lsb-release instead of distro-info. Duh.
+
+ [REGRESSION POTENTIAL]
+ Negligible.
+
+ The patch is already committed upstream, and uploaded to yakkety.
+
+ === modified file 'usr/bin/how-many-binary'
+ --- usr/bin/how-many-binary 2016-04-18 19:22:12 +0000
+ +++ usr/bin/how-many-binary 2016-05-06 15:48:52 +0000
+ @@ -20,7 +20,8 @@
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ arch="amd64"
+ -release=$(distro-info --latest)
+ +. /etc/lsb-release 2>/dev/null || true
+ +release=$DISTRIB_CODENAME
+ VERBOSE=0
+ for i in $@; do
+ case "$i" in
+ @@ -45,7 +46,7 @@
+
+ case "$arch" in
+ amd64|x86_64|*86)
+ - archive="archive.ubuntu.com"
+ + archive="archive.ubuntu.com/ubuntu"
+ ;;
+ *)
+ archive="ports.ubuntu.com"
** Changed in: what-utils (Ubuntu Xenial)
Assignee: Dustin Kirkland (kirkland) => Ubuntu Stable Release Updates
Team (ubuntu-sru)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579125
Title:
how-many-binary reports 0 all the time
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/what-utils/+bug/1579125/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs