This is an archive of the discontinued Mercurial Phabricator instance.

buildrpm: fix embarassing bug in shell variable expansions
ClosedPublic

Authored by durin42 on Sep 5 2018, 4:40 PM.

Details

Summary

$distance_$node looks up and concatenates $distance_ and
$node. $distance_ is empty, so we were getting the node without
the distance. Using the curly braces makes our intent explicit and
produces better-versioned RPMS.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

durin42 created this revision.Sep 5 2018, 4:40 PM
yuja added a subscriber: yuja.Sep 6 2018, 8:18 AM

Queued for stable, thanks.

This revision was automatically updated to reflect the committed changes.