skychart/skychart-3.11-satmessage.patch
2017-02-28 12:04:46 +01:00

30 lines
960 B
Diff

--- a/skychart/u_satellite.pas 2017-02-20 18:48:05.000000000 +0100
+++ b/skychart/u_satellite.pas 2017-02-27 19:15:57.825178736 +0100
@@ -86,26 +86,8 @@
end;
function CheckWine: boolean;
-var cmd,buf,msg: string;
- i,j: integer;
- r: Tstringlist;
begin
-r:=Tstringlist.Create;
-cmd:='wine --version';
-i:=execprocess(cmd,r);
-result:=(i=0);
-if not result then begin
- if r.Count>0 then begin
- buf:='';
- for j:=0 to r.Count-1 do buf:=buf+r[j];
- end else buf:='';
- msg:=rsPleaseInstWine;
- {$ifdef linux}
- msg:=msg+crlf+rsIfItIsNotIns+crlf+'apt-get install wine'+crlf+'yum install wine';
- {$endif}
- ShowMessage(msg+crlf+'wine return: '+buf);
-end;
-r.free;
+ShowMessage('Artificial satellites calculation has been removed due to Fedora policies.'+crlf+'If you need it, please uninstall Skychart provided by Fedora repositories and download Skychart rpms from the author site.');
end;
function CheckDosbox: boolean;