creating file in koji allowed?

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

 



Hi list,

I never saw this anywhere before, so I'd like to ask here first, before
doing so ;)

Is it allowed to create a file ~/.mpd.conf, when building in koji and
deleting afterwards?

I need to write down a password into that file, for running a testsuite.
If that file does not exist, I can't run mpich2 tests.

Here is the snipped, I intend to use:
"""
%{_mpich2_load}

# create ~/.mpd.conf, if it does not yet exist
if [ -e ~/.mpd.conf ]; then
    # working locally, don't delete ~/.mpd.conf
    DONT_DEL="TRUE"
else
    DONT_DEL="FALSE"
    echo MPD_SECRETWORD=$(pwgen -s 50 1) > ~/.mpd.conf
    chmod 600 ~/.mpd.conf
fi

mpd --daemon
PYTHONPATH=%{buildroot}%{python3_sitearch}/mpich2 \
    python3 test/runalltest.py
mpdallexit

# delte ~/.mpd.conf again
if [ $DONT_DEL = "FALSE" ]; then
    rm ~/.mpd.conf
fi

%{_mpich2_unload}
"""

This prefectly works with my local rpmbuild and local mock and there
won't probably be an issue with that, but is this 'the safe way' to do?
(This also use my local ~/.mpd.conf and does not owerwrite it or deletes
it afterwards.)


Thanks in advance.

	Thomas

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel

[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