get_sources.sh 248 B

12345678910111213
  1. #!/bin/bash
  2. echo Start: > sources_server.txt
  3. while read p; do
  4. if [[ $p == *:i386 ]]
  5. then
  6. p=${p%:i386}
  7. elif [[ $p == *:amd64 ]]
  8. then
  9. p=${p%:amd64}
  10. fi
  11. echo $p
  12. apt-cache showsrc $p | grep Package: >> sources_server.txt
  13. done <dev_server.lst