Skip to content

Instantly share code, notes, and snippets.

@dashea
dashea / verify_signfiles.sh
Created June 4, 2019 17:08
verify rpmsign --signfiles
#!/bin/sh
# Create the package signing key
gpg --homedir "$PWD" --batch --gen-key << EOF
Key-Type: RSA
Key-Length: 1024
Name-Real: Test User
Name-Email: test@example.com
Expire-Date: 0
%commit
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
import Control.Conditional(whenM)
import Control.Exception(bracket_)
import Control.Monad(forM_, void)
import Control.Monad.State(StateT, execStateT, lift, modify)
import Data.GI.Base.ManagedPtr(unsafeCastTo)
import Data.Text(Text)
import GI.Gio
@dashea
dashea / gist:c87959699bfca9a1b679d1cc22ae6960
Created May 5, 2016 14:28
translation canary project test output
PYTHONPATH=. tests/project-tests/test_projects.sh tests/project-tests/project_list.txt
Testing anaconda:f24-branch
Success: anaconda:f24-branch
Testing anaconda:rhel6-branch
test_markup failed on it.po: Invalid markup translation for msgid <span size="large" weight="bold">The storage device below may contain data.</span>
<span size=\"large\" weight=\"bold\">Il seguente dispositivo di storage potrebbe contenere dei dati.</span>
test_msgfmt failed on ru.po: Unable to compile canary.74lJZm/ru.po: canary.74lJZm/ru.po:621: number of format specifications in 'msgid_plural' and 'msgstr[2]' does not match
msgfmt: found 1 fatal error
1245 translated messages.