opnsense-ports/devel/ruby-dialogs/files/patch-dialogs.rb
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

11 lines
346 B
Ruby

--- dialogs.rb.orig Fri Mar 2 18:19:37 2001
+++ dialogs.rb Fri Mar 2 19:15:11 2001
@@ -73,7 +73,7 @@
class Dialog
def perform(cmd)
- options = "--backtitle '#{@title}'"
+ options = if /^--title / =~ cmd then "" else "--title '#{@title}'" end
tf=Tempfile.new("dialog")
torun=@DIALOG+' '+options+' '+cmd+" 2> #{tf.path}"
system(torun)