Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=54677e4bf2c1226ce044958e2afb0ce9b5adfbfb

commit 54677e4bf2c1226ce044958e2afb0ce9b5adfbfb
Author: crazy <[email protected]>
Date:   Wed Nov 18 01:52:59 2015 +0100

t/s/oldies
* doing a ls on all fpm's is a bit faster but no-one can
* really read that output..
* use per arch find and change the output to be :
* $year frugalware-$arch/$pkgname*-fpm
* disabled arm for now

diff --git a/t/s/oldies b/t/s/oldies
index c6efacb..b56fe8e 100755
--- a/t/s/oldies
+++ b/t/s/oldies
@@ -1,15 +1,29 @@
#!/bin/bash

if [ "$1" ==  "--help" ]; then
-       echo "packages not updated at least for one year"
-       exit 1
+        echo "packages not updated at least for one year"
+        exit 1
fi

cd ../..

unset LANG LC_ALL

-for i in $(find frugalware-* -mtime +365 -name '*.fpm')
+TMP_FILE1=$(mktemp)
+TMP_FILE2=$(mktemp)
+
+## add -arm- once is maintained again
+for i in $(find frugalware-i686  -mtime +365 -name '*.fpm')
+do
+        ls -lh $i | awk '{print $8,$9}' >>$TMP_FILE1
+done
+
+for i in $(find frugalware-x86_64  -mtime +365 -name '*.fpm')
do
-       ls -lh $i |sed "s/.* `whoami` [^ ]* //"
+        ls -lh $i | awk '{print $8,$9}'  >>$TMP_FILE2
done
+
+cat $TMP_FILE1 | sort -u
+cat $TMP_FILE2 | sort -u
+
+rm -rf $TMP_FILE1 $TMP_FILE2
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to