Changeset 40829 for titan/plugins


Ignore:
Timestamp:
Aug 26, 2017, 11:39:50 PM (3 years ago)
Author:
obi
Message:

tithek cleanup python stuff before extracting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/tithek.h

    r40196 r40829  
    568568                char* cmd = NULL;
    569569                if(ostrcmp(node->filename, "/media/hdd/.tithek/python.tar") == 0)
    570                         cmd = ostrcat("tar -xf /media/hdd/.tithek/python.tar -C /media/hdd/.tithek/", NULL, 0, 0);
     570                        cmd = ostrcat("rm -rf /media/hdd/.tithek/lib; tar -xf /media/hdd/.tithek/python.tar -C /media/hdd/.tithek/", NULL, 0, 0);
    571571                else if(ostrcmp(node->filename, "/var/swap/.tithek/python.tar") == 0)
    572                         cmd = ostrcat("tar -xf /var/swap/.tithek/python.tar -C /var/swap/.tithek/", NULL, 0, 0);
     572                        cmd = ostrcat("rm -rf /var/swap/.tithek/lib; tar -xf /var/swap/.tithek/python.tar -C /var/swap/.tithek/", NULL, 0, 0);
    573573                else if(ostrcmp(node->filename, "/mnt/.tithek/python.tar") == 0)
    574                         cmd = ostrcat("tar -xf /mnt/.tithek/python.tar -C /mnt/.tithek/", NULL, 0, 0);
     574                        cmd = ostrcat("rm -rf /mnt/.tithek/lib; tar -xf /mnt/.tithek/python.tar -C /mnt/.tithek/", NULL, 0, 0);
    575575                else if(ostrcmp(node->filename, "/tmp/python.tar") == 0)
    576576                        cmd = ostrcat("tar -xf /tmp/python.tar -C /tmp/localhoster/", NULL, 0, 0);
Note: See TracChangeset for help on using the changeset viewer.