| Last change
                  on this file since 2571 was
                  2274,
                  checked in by achernya, 13 years ago | 
        
          | Set locale to C so sort produces consistent results for rpm-sync | 
        
          | 
              
                  Property svn:executable set to
                  * | 
        | File size:
            271 bytes | 
      
      
        
  | Rev | Line |  | 
|---|
| [1640] | 1 | #!/bin/sh | 
|---|
| [1639] | 2 |  | 
|---|
| [2274] | 3 | export LC_ALL=C | 
|---|
|  | 4 |  | 
|---|
| [1639] | 5 | copyTo='/mit/scripts/cron_scripts/rpm-sync/' | 
|---|
|  | 6 | packages=`mktemp --tmpdir rpmlist.XXXXXX` | 
|---|
|  | 7 | rpm -qa --queryformat '%{NAME}.%{ARCH}\n' | sort | uniq > $packages | 
|---|
|  | 8 |  | 
|---|
|  | 9 | host=`hostname` | 
|---|
|  | 10 | extension='.rpmlist' | 
|---|
|  | 11 | file="$copyTo/$host$extension" | 
|---|
|  | 12 | mv $packages $file | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.