X-Git-Url: http://www.git.cypherpunks.ru/?p=gocheese.git;a=blobdiff_plain;f=contrib%2Fpyshop2packages.sh;h=e247ce8927d10cb9cc742c4161f996b7ce7c21b9;hp=034f8c1d8859e943f2a9e258c1684319aecf0132;hb=e97a705ee3574ed3b4cf707f85fc2dff461d9365;hpb=168de6871afdd60f2bc1c529170033ef56307d7c diff --git a/contrib/pyshop2packages.sh b/contrib/pyshop2packages.sh index 034f8c1..e247ce8 100755 --- a/contrib/pyshop2packages.sh +++ b/contrib/pyshop2packages.sh @@ -1,4 +1,5 @@ #!/bin/sh -e +# WARNING: it may fail if ~/.sqliterc exists! # Convert Pyshop working directory to GoCheese friendly one. # Script expects to be run in packages repository (a/, b/, ...) # with pyshop.db database file. It will create packages/ directory @@ -21,7 +22,7 @@ FROM release_file JOIN release ON release.id = release_file.release_id JOIN package ON release.package_id = package.id ORDER BY package.name -" | sqlite3 --separator " " pyshop.db | while read pkginfo ; do +" | sqlite3 -separator " " pyshop.db | while read pkginfo ; do ctr=$(( $ctr + 1 )) [ $(( $ctr % 100 )) -ne 0 ] || echo $ctr $pkginfo pkg=$(echo "$pkginfo" | cut -f1 | pkgname)