chiark / gitweb /
Easier multiline strings
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 26 Jun 2014 10:52:16 +0000 (12:52 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 26 Jun 2014 10:52:16 +0000 (12:52 +0200)
fdroidserver/common.py

index 463d180bf7f6ea84f43b751c06bfde7c3a5bf8f3..bdc6da2e5fa80e0f8ccb6d8aad336bfee9e01c9d 100644 (file)
@@ -483,9 +483,9 @@ class vcs_git(vcs):
 
     def latesttags(self, alltags, number):
         self.checkrepo()
-        p = SilentPopen(['echo "' + '\n'.join(alltags) + '" | \
-                xargs -I@ git log --format=format:"%at @%n" -1 @ | \
-                sort -n | awk \'{print $2}\''],
+        p = SilentPopen(['echo "' + '\n'.join(alltags) + '" | '
+                        + 'xargs -I@ git log --format=format:"%at @%n" -1 @ | '
+                        + 'sort -n | awk \'{print $2}\''],
                         cwd=self.local, shell=True)
         return p.stdout.splitlines()[-number:]