kget: remove update (upd) files

This commit is contained in:
Ivailo Monev 2014-12-31 14:48:26 +00:00
parent 88fc5ae59f
commit 2023560860
4 changed files with 0 additions and 87 deletions

View file

@ -1,4 +1 @@
install(FILES kget.kcfg DESTINATION ${KCFG_INSTALL_DIR})
install(FILES kget.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR})
install(PROGRAMS kget_sensitive.pl DESTINATION ${KCONF_UPDATE_INSTALL_DIR})
install(PROGRAMS kget_limitdownloads.pl DESTINATION ${KCONF_UPDATE_INSTALL_DIR})

View file

@ -1,31 +0,0 @@
Id=2.8.0
File=kgetrc
Group=Advanced
RemoveKey=ExpertMode
Group=Appearance
RemoveKey=Columns
RemoveKey=ShowExpandableTransferDetails
RemoveKey=ShowSplashscreen
RemoveKey=EnablePopupTooltip
Group=Geometry
RemoveKey=ColumnWidths
Group=Network
RemoveKey=AutoShutdown
RemoveKey=AutoDisconnect
RemoveKey=MaxConnectionsServer
Id=2.8.0/multiseg
File=kget_multisegkiofactory.rc
Group=Segments
RemoveKey=SplitSize
RemoveKey=SaveSegSize
Id=2.8.0/sensitive
File=kgetrc
Group=Advanced
Script=kget_sensitive.pl,perl
Id=2.8.0/limitdownloads
File=kgetrc
Group=Network
Script=kget_limitdownloads.pl,perl

View file

@ -1,36 +0,0 @@
#!/usr/bin/perl
$doChange=0;
$connections=0;
while(<>)
{
($key) = ($_ =~ /([^=]*)=(.*)$/);
($value) = ($_ =~ /^[^=]*=(.*)$/);
if( $key eq "LimitDownloads" )
{
if ( $value eq "false" )
{
$doChange=1;
}
print "# DELETE " . $key . "\n";
next;
}
if ( $key eq "MaxConnections" )
{
$connections=$value;
print "# DELETE MaxConnections\n";
next;
}
print $_;
}
if ( $doChange eq 1 )
{
print "MaxConnections=0\n";
} else {
print "MaxConnections=" . $connections . "\n";
}

View file

@ -1,17 +0,0 @@
#!/usr/bin/perl
while(<>)
{
($key) = ($_ =~ /([^=]*)=(.*)$/);
($value) = ($_ =~ /^[^=]*=(.*)$/);
if( $key eq "AutoPasteCaseInsensitive" and $value eq "false" )
{
print "# DELETE " . $key . "\n";
print "AutoPasteCaseSensitive=true\n";
next;
}
print $_;
}