* skip translating docstrings in files except commands...
* create destination directory if it doesn't exist * update po, wohooo
This commit is contained in:
@@ -106,7 +106,8 @@ class Command(object):
|
|||||||
dir = str(self.options.destdir)
|
dir = str(self.options.destdir)
|
||||||
import os.path
|
import os.path
|
||||||
if not os.path.exists(dir):
|
if not os.path.exists(dir):
|
||||||
raise Error, _('Destination directory %s does not exist') % dir
|
pisi.cli.printu(_('Destination directory %s does not exist. Creating directory.\n') % dir)
|
||||||
|
os.makedirs(dir)
|
||||||
self.options.destdir = os.path.realpath(dir)
|
self.options.destdir = os.path.realpath(dir)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+366
-1900
File diff suppressed because it is too large
Load Diff
@@ -9,14 +9,14 @@ echo "working directory:" `pwd`
|
|||||||
echo "cleaning destination dir: tmp"
|
echo "cleaning destination dir: tmp"
|
||||||
rm -rf tmp
|
rm -rf tmp
|
||||||
#echo "*** repository tests"
|
#echo "*** repository tests"
|
||||||
pisi-cli -D add-repo pardus ftp://ftp.uludag.org.tr/pub/pisi/binary/pisi-index.xml
|
pisi-cli -Dtmp add-repo pardus http://paketler.uludag.org.tr/pardus-devel/pisi-index.xml
|
||||||
pisi-cli update-repo pardus
|
pisi-cli -Dtmp update-repo pardus
|
||||||
pisi-cli list-repo
|
pisi-cli -Dtmp list-repo
|
||||||
|
|
||||||
#echo "*** package ops"
|
#echo "*** package ops"
|
||||||
pisi-cli list-available
|
pisi-cli -Dtmp list-available
|
||||||
pisi-cli info python
|
pisi-cli -Dtmp info python
|
||||||
pisi-cli install python
|
pisi-cli -Dtmp -y install python
|
||||||
|
|
||||||
echo "*** database contents"
|
echo "*** database contents"
|
||||||
for x in `find tmp -iname '*.bdb'`; do
|
for x in `find tmp -iname '*.bdb'`; do
|
||||||
|
|||||||
+3
-2
@@ -1,3 +1,4 @@
|
|||||||
pygettext.py -D -o po/pisi.pot pisi
|
find pisi -iname '*.py' | grep -v pisi/cli/commands.py >exclude
|
||||||
|
pygettext.py -D -X exclude -o po/pisi.pot pisi
|
||||||
msgmerge -U po/tr.po po/pisi.pot
|
msgmerge -U po/tr.po po/pisi.pot
|
||||||
|
rm exclude
|
||||||
|
|||||||
Reference in New Issue
Block a user