Ticket #5875: tap2rpm-hestern.2.patch

File tap2rpm-hestern.2.patch, 1.1 KB (added by hestern, 4 years ago)

Fixed tap2rpm patch. Ignore earlier.

  • twisted/scripts/tap2rpm.py

    old new  
    3535[ -r /etc/default/%(rpm_file)s ] && . /etc/default/%(rpm_file)s
    3636
    3737#  check for required files
    38 if [ ! -x %(twistd) ]
     38if [ ! -x %(twistd)s ]
    3939then
    40         echo "$0: Aborting, no %(twistd) found"
     40        echo "$0: Aborting, no %(twistd)s found"
    4141        exit 0
    4242fi
    4343if [ ! -r "$file" ]
     
    5656case "$1" in
    5757        start)
    5858                echo -n "Starting %(rpm_file)s: twistd"
    59                 daemon twistd  \\
     59                daemon %(twistd)s  \\
    6060                                --pidfile=$pidfile \\
    6161                                --rundir=$rundir \\
    6262                                --%(twistd_option)s=$file \\
     
    9595Group:      Networking/Daemons
    9696Source:     %(tarfile_basename)s
    9797BuildRoot:  %%{_tmppath}/%%{name}-%%{version}-root
    98 Requires:   %(twistd)
     98Requires:   %(twistd)s
    9999BuildArch:  noarch
    100100
    101101%%description