コード例 #1
0
    def apply(self, st):
        fcmd = ''

        cmd = 'pacman -S --noconfirm '
        a = False
        for x in st.pending:
            if st.pending[x] == 'install':
                cmd += x + ' '
                a = True

        if a:
            fcmd += cmd + '; '

        cmd = 'pacman -Rc --noconfirm '
        a = False
        for x in st.pending:
            if st.pending[x] != 'install':
                cmd += x + ' '
                a = True

        if a:
            fcmd += cmd

        utils.shell_bg(fcmd,
                       output='/tmp/ajenti-pacman-output',
                       deleteout=True)
コード例 #2
0
ファイル: pm_ports.py プロジェクト: Bryukh/ajenti
 def apply(self, st):
     cmd = 'portupgrade -R'
     cmd2 = 'pkg_deinstall -r'
     for x in st.pending:
         if st.pending[x] == 'install':
             cmd += ' ' + x
         else:
             cmd2 += ' ' + x
     utils.shell_bg('%s; %s'%(cmd,cmd2), output='/tmp/ajenti-ports-output', deleteout=True)
コード例 #3
0
ファイル: pm_portage.py プロジェクト: Bryukh/ajenti
 def apply(self, st):
     cmd = 'emerge '
     cmd2 = 'emerge --unmerge'
     for x in st.pending:
         if st.pending[x] == 'install':
             cmd += ' ' + x
         else:
             cmd2 += ' ' + x
     shell_bg('%s; %s'%(cmd,cmd2), output='/tmp/ajenti-portage-output', deleteout=True)
コード例 #4
0
ファイル: pm_ports.py プロジェクト: vlara/ajenti
 def apply(self, st):
     cmd = 'portupgrade -R'
     cmd2 = 'pkg_deinstall -r'
     for x in st.pending:
         if st.pending[x] == 'install':
             cmd += ' ' + x
         else:
             cmd2 += ' ' + x
     utils.shell_bg('%s; %s' % (cmd, cmd2),
                    output='/tmp/ajenti-ports-output',
                    deleteout=True)
コード例 #5
0
ファイル: pm_pacman.py プロジェクト: Bryukh/ajenti
    def apply(self, st):
        fcmd = ''
        
        cmd = 'pacman -S --noconfirm '
        a = False
        for x in st.pending:
            if st.pending[x] == 'install':
                cmd += x + ' '
                a = True
                
        if a:
            fcmd += cmd + '; '
        
        cmd = 'pacman -Rc --noconfirm '
        a = False
        for x in st.pending:
            if st.pending[x] != 'install':
                cmd += x + ' '
                a = True

        if a:
            fcmd += cmd
        
        utils.shell_bg(fcmd, output='/tmp/ajenti-pacman-output', deleteout=True)
コード例 #6
0
 def apply(self, st):
     cmd = 'apt-get -y install '
     for x in st.pending:
         cmd += x + ('+ ' if st.pending[x] == 'install' else '- ')
     utils.shell_bg(cmd, output='/tmp/ajenti-apt-output', deleteout=True)
コード例 #7
0
 def get_lists(self):
     utils.shell_bg('apt-get update',
                    output='/tmp/ajenti-apt-output',
                    deleteout=True)
コード例 #8
0
ファイル: pm_yum.py プロジェクト: Bryukh/ajenti
 def apply(self, st):
     cmd = 'yum -y install '
     for x in st.pending:
         cmd += x + (' ' if st.pending[x] == 'install' else ' ')
     utils.shell_bg(cmd, output='/tmp/ajenti-yum-output', deleteout=True)
コード例 #9
0
ファイル: pm_yum.py プロジェクト: Bryukh/ajenti
 def get_lists(self):
     utils.shell_bg('yum check-update', output='/tmp/ajenti-yum-output', deleteout=True)
コード例 #10
0
ファイル: main.py プロジェクト: Ozerich/ajenti
 def get_lists(self):
     utils.shell_bg("apt-get update", output="/tmp/ajenti-apt-output", deleteout=True)
コード例 #11
0
ファイル: pm_apt.py プロジェクト: Bryukh/ajenti
 def get_lists(self):
     utils.shell_bg('apt-get update', output='/tmp/ajenti-apt-output', deleteout=True)
コード例 #12
0
ファイル: pm_portage.py プロジェクト: Bryukh/ajenti
 def get_lists(self):
     shell_bg('emerge --sync', output='/tmp/ajenti-portage-output', deleteout=True)
コード例 #13
0
ファイル: pm_pacman.py プロジェクト: Bryukh/ajenti
 def get_lists(self):
     utils.shell_bg('pacman -Sy', output='/tmp/ajenti-pacman-output', deleteout=True)
コード例 #14
0
ファイル: pm_ports.py プロジェクト: vlara/ajenti
 def get_lists(self):
     utils.shell_bg('portsnap fetch',
                    output='/tmp/ajenti-ports-output',
                    deleteout=True)
コード例 #15
0
 def get_lists(self):
     utils.shell_bg('pacman -Sy',
                    output='/tmp/ajenti-pacman-output',
                    deleteout=True)
コード例 #16
0
ファイル: main.py プロジェクト: Ozerich/ajenti
 def get_lists(self):
     utils.shell_bg('zypper ref',
                    output='/tmp/ajenti-zypp-output',
                    deleteout=True)
コード例 #17
0
ファイル: main.py プロジェクト: Ozerich/ajenti
 def apply(self, st):
     cmd = 'zypper -n install '  #!
     for x in st.pending:
         cmd += (' ' if st.pending[x] == 'install' else ' -') + x
     utils.shell_bg(cmd, output='/tmp/ajenti-zypper-output', deleteout=True)
コード例 #18
0
ファイル: main.py プロジェクト: LittleForker/ajenti
 def get_lists(self):
     utils.shell_bg('zypper ref', output='/tmp/ajenti-zypp-output', deleteout=True)
コード例 #19
0
ファイル: pm_apt.py プロジェクト: Bryukh/ajenti
 def apply(self, st):
     cmd = 'apt-get -y --force-yes install '
     for x in st.pending:
         cmd += x + ('+ ' if st.pending[x] == 'install' else '- ')
     utils.shell_bg(cmd, output='/tmp/ajenti-apt-output', deleteout=True)
コード例 #20
0
ファイル: main.py プロジェクト: LittleForker/ajenti
 def apply(self, st):
     cmd = 'zypper -n install ' #!
     for x in st.pending:
         cmd += (' ' if st.pending[x] == 'install' else ' -') + x
     utils.shell_bg(cmd, output='/tmp/ajenti-zypper-output', deleteout=True)
コード例 #21
0
ファイル: main.py プロジェクト: Ozerich/ajenti
 def apply(self, st):
     cmd = "apt-get -y install "
     for x in st.pending:
         cmd += x + ("+ " if st.pending[x] == "install" else "- ")
     utils.shell_bg(cmd, output="/tmp/ajenti-apt-output", deleteout=True)
コード例 #22
0
ファイル: pm_ports.py プロジェクト: Bryukh/ajenti
 def get_lists(self):
     utils.shell_bg('portsnap fetch', output='/tmp/ajenti-ports-output', deleteout=True)