From: Sergey Matveev Date: Fri, 24 Sep 2021 08:42:04 +0000 (+0300) Subject: pyshop2packages workability X-Git-Tag: v3.0.0~14 X-Git-Url: http://www.git.cypherpunks.ru/?p=gocheese.git;a=commitdiff_plain;h=e97a705ee3574ed3b4cf707f85fc2dff461d9365 pyshop2packages workability --- 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)