Re: Variable expansion in COPR external URL?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 19, 2015 at 3:54 AM, Miroslav Suchý <msuchy@xxxxxxxxxx> wrote:
Dne 17.10.2015 v 23:55 Dave Johansen napsal(a):
> How can I do a variable expansion that doesn't have - before and after? I tried "slc${releasever}X" [1] and
> "slc$releaseverX" [2] but neither worked.
> Thanks,
> Dave
>
> [1]: https://copr-be.cloud.fedoraproject.org/results/daveisfera/odb_2.3_cern/epel-5-i386/00128584-odb/root.log.gz
> [2]: https://copr-be.cloud.fedoraproject.org/results/daveisfera/odb_2.3_cern/epel-5-i386/00128585-odb/root.log.gz
>
>

There is nothing special in Copr about this. Copr (or mock to be precise) just pass --releasever to dnf/yum.

Looking at dnf code - and I assume yum will have similar code... There is in dnf/conf/parser.py the regular _expression_:
  _KEYCRE = re.compile(r"\$(\w+)")
which eat everything until first non word character.
If you want smarter substitution, then please file RFE against DNF. Or even better send patch. :)

I opened a bugzilla ( https://bugzilla.redhat.com/show_bug.cgi?id=1283017 ).
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux