mirror of
				https://github.com/fspc/gbootroot.git
				synced 2025-11-03 16:05:34 -05:00 
			
		
		
		
	Shows people what lines to add to their sources.list.
This commit is contained in:
		
							parent
							
								
									81a991730b
								
							
						
					
					
						commit
						ee7d526fc2
					
				@ -588,9 +588,13 @@ sub start_up {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    # Swim has never been installed before?
 | 
					    # Swim has never been installed before?
 | 
				
			||||||
    my $dpkg_result = system "dpkg -l swim >/dev/null 2>&1";
 | 
					    my $dpkg_result = system "dpkg -l swim >/dev/null 2>&1";
 | 
				
			||||||
    if ($dpkg_result !=0) {
 | 
					    if ($dpkg_result != 0) {
 | 
				
			||||||
	die "Swim is required, and may be found at " .
 | 
						die "Swim is required:\n\n" .
 | 
				
			||||||
	    "http://www.sourceforge.net/projects/avd\n";
 | 
					            "Add one of these lines to your /etc/apt/sources.list:\n" .
 | 
				
			||||||
 | 
						    "deb http://prdownloads.sourceforge.net/avd ./  orx\n" .
 | 
				
			||||||
 | 
						    "deb http://download.sourceforge.net/avd ./\n\n" .
 | 
				
			||||||
 | 
					            "Then do `apt-get update` and `apt-get install swim`\n" .
 | 
				
			||||||
 | 
					            "";
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Swim has been installed but is removed or purged
 | 
					    # Swim has been installed but is removed or purged
 | 
				
			||||||
@ -600,8 +604,12 @@ sub start_up {
 | 
				
			|||||||
	if (/Status:/) {
 | 
						if (/Status:/) {
 | 
				
			||||||
	    if (!/\s+installed/) {
 | 
						    if (!/\s+installed/) {
 | 
				
			||||||
		if (/purge|deinstall/) {
 | 
							if (/purge|deinstall/) {
 | 
				
			||||||
		    die "Please retrieve swim from " .
 | 
							    die "Swim needs to be reinstalled:\n\n" .
 | 
				
			||||||
			"http://www.sourceforge.net/projects/avd and reinstall.\n";
 | 
						       "Add one of these lines to your /etc/apt/sources.list:\n" .
 | 
				
			||||||
 | 
						       "deb http://prdownloads.sourceforge.net/avd ./  orx\n" .
 | 
				
			||||||
 | 
						       "deb http://download.sourceforge.net/avd ./\n\n" .
 | 
				
			||||||
 | 
						       "Then do `apt-get update` and `apt-get install swim`\n" .
 | 
				
			||||||
 | 
					            "";
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	    }
 | 
						    }
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user