/[smeserver]/rpms/smeserver-yum/sme8/smeserver-yum-2.2.0-migratelist.patch
ViewVC logotype

Diff of /rpms/smeserver-yum/sme8/smeserver-yum-2.2.0-migratelist.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by slords, Wed Jun 2 16:41:28 2010 UTC Revision 1.2 by slords, Wed Jun 2 17:10:51 2010 UTC
# Line 1  Line 1 
1  diff -up smeserver-yum-2.2.0/root/etc/e-smith/db/yum_repositories/migrate/40GlobalMirrorList.migratelist smeserver-yum-2.2.0/root/etc/e-smith/db/yum_repositories/migrate/40GlobalMirrorList  diff -up smeserver-yum-2.2.0/root/etc/e-smith/db/yum_repositories/migrate/40GlobalMirrorList.migratelist smeserver-yum-2.2.0/root/etc/e-smith/db/yum_repositories/migrate/40GlobalMirrorList
2  --- smeserver-yum-2.2.0/root/etc/e-smith/db/yum_repositories/migrate/40GlobalMirrorList.migratelist     2010-06-02 09:40:54.000000000 -0600  --- smeserver-yum-2.2.0/root/etc/e-smith/db/yum_repositories/migrate/40GlobalMirrorList.migratelist     2010-06-02 09:40:54.000000000 -0600
3  +++ smeserver-yum-2.2.0/root/etc/e-smith/db/yum_repositories/migrate/40GlobalMirrorList 2010-06-02 10:09:05.000000000 -0600  +++ smeserver-yum-2.2.0/root/etc/e-smith/db/yum_repositories/migrate/40GlobalMirrorList 2010-06-02 10:09:05.000000000 -0600
4  @@ -4,7 +4,19 @@  @@ -4,7 +4,16 @@
5       {       {
6          my $repo = $DB->get($name) or next;          my $repo = $DB->get($name) or next;
7    
# Line 12  diff -up smeserver-yum-2.2.0/root/etc/e- Line 12  diff -up smeserver-yum-2.2.0/root/etc/e-
12  +        {  +        {
13  +            $repo->delete_prop('MirrorList');  +            $repo->delete_prop('MirrorList');
14  +            $repo->delete_prop('BaseURL');  +            $repo->delete_prop('BaseURL');
15  +            unlink "/var/cache/yum/$name/repomd.xml" if -f "/var/cache/yum/$name/repomd.xml";  +            unlink "/var/cache/yum/$name/$_" foreach qw(repomd.xml mirrorlist.txt);
 +            unlink "/var/cache/yum/$name/mirrorlist.txt" if -f "/var/cache/yum/$name/mirrorlist.txt";  
16  +            if ($repo->prop('status') eq 'enabled')  +            if ($repo->prop('status') eq 'enabled')
17  +            {  +            {
18  +                unlink '/home/e-smith/db/yum_available' if -f '/home/e-smith/db/yum_available';  +                unlink "/home/e-smith/db/yum_$_" foreach qw(available updates installed);
 +                unlink '/home/e-smith/db/yum_updates' if -f '/home/e-smith/db/yum_updates';  
 +                unlink '/home/e-smith/db/yum_updates' if -f '/home/e-smith/db/yum_updates';  
19  +            }  +            }
20  +        }  +        }
21       }       }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed