[Apt-offline-devel] [SCM] Offline APT Package Manager branch, master, updated. 0.9.6-20-gafcaa61

Ritesh Raj Sarraf rrs at researchut.com
Thu Mar 11 13:20:11 UTC 2010


The following commit has been merged in the master branch:
commit d325a82184b8ea944b5310d42caaec561632ba15
Author: Ritesh Raj Sarraf <rrs at researchut.com>
Date:   Thu Mar 11 18:20:58 2010 +0530

    Sigh!!!  forgot the clean-up

diff --git a/apt_offline_core/AptOfflineCoreLib.py b/apt_offline_core/AptOfflineCoreLib.py
index d08bd29..7bc67d2 100644
--- a/apt_offline_core/AptOfflineCoreLib.py
+++ b/apt_offline_core/AptOfflineCoreLib.py
@@ -1566,38 +1566,7 @@ def setter(args):
         
         if List_SetInstallSrcPackages != None and List_SetInstallSrcPackages != []:
                 if platform.system() in supported_platforms:
-                        
                         AptInst.InstallSrcPackages(List_SetInstallSrcPackages, Str_SetInstallRelease, Bool_SrcBuildDep)
-                        package_list = ''
-                        for pkg in List_SetInstallSrcPackages:
-                                package_list += pkg + ', '
-                        log.msg( "\nGenerating database of source packages %s.\n" % (package_list) )
-                        os.environ['__apt_set_install'] = Str_SetArg
-                        os.environ['__apt_set_install_src_packages'] = ''
-                        
-                        for x in List_SetInstallSrcPackages:
-                                os.environ['__apt_set_install_src_packages'] += x + ' '
-                                
-                        if Str_SetInstallRelease:
-                                os.environ['__apt_set_install_release'] = Str_SetArg
-                                if os.system( '/usr/bin/apt-get -qq --print-uris -t $__apt_set_install_release source $__apt_set_install_src_packages >> $__apt_set_install' ) != 0:
-                                        log.err( "FATAL: Something is wrong with the apt system.\n" )
-                        else:
-                                #FIXME: Find a more Pythonic implementation
-                                if os.system( '/usr/bin/apt-get -qq --print-uris source $__apt_set_install_src_packages >> $__apt_set_install' ) != 0:
-                                        log.err( "FATAL: Something is wrong with the apt system.\n" )
-                        
-                        if Bool_SrcBuildDep:
-                                log.msg("Generating Build-Dependency for source packages %s.\n" % (package_list) )
-                                if Str_SetInstallRelease:
-                                        os.environ['__apt_set_install_release'] = Str_SetArg
-                                        if os.system( '/usr/bin/apt-get -qq --print-uris -t $__apt_set_install_release build-dep $__apt_set_install_src_packages >> $__apt_set_install' ) != 0:
-                                                log.err( "FATAL: Something is wrong with the apt system.\n" )
-                                else:
-                                        #FIXME: Find a more Pythonic implementation
-                                        if os.system( '/usr/bin/apt-get -qq --print-uris build-dep $__apt_set_install_src_packages >> $__apt_set_install' ) != 0:
-                                                log.err( "FATAL: Something is wrong with the apt system.\n" )
-                                
                 else:
                         log.err( "This argument is supported only on Unix like systems with apt installed\n" )
                         sys.exit( 1 )

-- 
Offline APT Package Manager



More information about the Apt-offline-devel mailing list