Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:embar-:Lietukas
android-tools
adb.bash
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File adb.bash of Package android-tools
IyAvKiB2aW06IHNldCBhaSB0cz00IGZ0PXNoOiAqLwojCiMgQ29weXJpZ2h0IDIwMTEsIFRoZSBBbmRyb2lkIE9wZW4gU291cmNlIFByb2plY3QKIwojIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSAiTGljZW5zZSIpOwojIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS4KIyBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXQKIwojICAgICBodHRwOi8vd3d3LmFwYWNoZS5vcmcvbGljZW5zZXMvTElDRU5TRS0yLjAKIwojIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmUKIyBkaXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiAiQVMgSVMiIEJBU0lTLAojIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLgojIFNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxhbmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmQKIyBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS4KIwoKX2FkYigpIHsKICAgIGlmICEgY2hlY2tfdHlwZSAiJDEiID4vZGV2L251bGw7IHRoZW4KICAgICAgICByZXR1cm4KICAgIGZpCgogICAgaWYgY2hlY2tfdHlwZSBfaW5pdF9jb21wbGV0aW9uID4vZGV2L251bGw7IHRoZW4KICAgICAgICBfaW5pdF9jb21wbGV0aW9uIHx8IHJldHVybgogICAgZmkKCiAgICBsb2NhbCB3aGVyZSBpIGN1ciBzZXJpYWwKICAgIENPTVBSRVBMWT0oKQoKICAgIHNlcmlhbD0iJHtBTkRST0lEX1NFUklBTDotbm9uZX0iCiAgICB3aGVyZT1PUFRJT05TCiAgICBmb3IgKChpPTE7IGkgPD0gQ09NUF9DV09SRDsgaSsrKSk7IGRvCiAgICAgICAgY3VyPSIke0NPTVBfV09SRFNbaV19IgogICAgICAgIGNhc2UgIiR7Y3VyfSIgaW4KICAgICAgICAgICAgLXMpCiAgICAgICAgICAgICAgICB3aGVyZT1PUFRfU0VSSUFMCiAgICAgICAgICAgICAgICA7OwogICAgICAgICAgICAtcCkKICAgICAgICAgICAgICAgIHdoZXJlPU9QVF9QQVRICiAgICAgICAgICAgICAgICA7OwogICAgICAgICAgICAtKikKICAgICAgICAgICAgICAgIHdoZXJlPU9QVElPTlMKICAgICAgICAgICAgICAgIDs7CiAgICAgICAgICAgICopCiAgICAgICAgICAgICAgICBpZiBbWyAkd2hlcmUgPT0gT1BUX1NFUklBTCBdXTsgdGhlbgogICAgICAgICAgICAgICAgICAgIHdoZXJlPU9QVF9TRVJJQUxfQVJHCiAgICAgICAgICAgICAgICAgICAgc2VyaWFsPSR7Y3VyfQogICAgICAgICAgICAgICAgZWxzZQogICAgICAgICAgICAgICAgICAgIHdoZXJlPUNPTU1BTkQKICAgICAgICAgICAgICAgICAgICBicmVhawogICAgICAgICAgICAgICAgZmkKICAgICAgICAgICAgICAgIDs7CiAgICAgICAgZXNhYwogICAgZG9uZQoKICAgIGlmIFtbICR3aGVyZSA9PSBDT01NQU5EICYmICRpIC1nZSAkQ09NUF9DV09SRCBdXTsgdGhlbgogICAgICAgIHdoZXJlPU9QVElPTlMKICAgIGZpCgogICAgT1BUSU9OUz0iLWQgLWUgLXMgLXAiCiAgICBDT01NQU5EPSJkZXZpY2VzIGNvbm5lY3QgZGlzY29ubmVjdCBwdXNoIHB1bGwgc3luYyBzaGVsbCBlbXUgbG9nY2F0IGxvbGNhdCBmb3J3YXJkIGpkd3AgaW5zdGFsbCB1bmluc3RhbGwgYnVncmVwb3J0IGhlbHAgdmVyc2lvbiBzdGFydC1zZXJ2ZXIga2lsbC1zZXJ2ZXIgZ2V0LXN0YXRlIGdldC1zZXJpYWxubyBzdGF0dXMtd2luZG93IHJlbW91bnQgcmVib290IHJlYm9vdC1ib290bG9hZGVyIHJvb3QgdXNiIHRjcGlwIGRpc2FibGUtdmVyaXR5IgoKICAgIGNhc2UgJHdoZXJlIGluCiAgICAgICAgT1BUSU9OU3xPUFRfU0VSSUFMfE9QVF9QQVRIKQogICAgICAgICAgICBDT01QUkVQTFk9KCAkKGNvbXBnZW4gLVcgIiRPUFRJT05TICRDT01NQU5EIiAtLSAiJGN1ciIpICkKICAgICAgICAgICAgOzsKICAgICAgICBPUFRfU0VSSUFMX0FSRykKICAgICAgICAgICAgbG9jYWwgZGV2aWNlcz0kKGNvbW1hbmQgYWRiIGRldmljZXMgMj4gL2Rldi9udWxsIHwgZ3JlcCAtdiAiTGlzdCBvZiBkZXZpY2VzIiB8IGF3ayAneyBwcmludCAkMSB9JykKICAgICAgICAgICAgQ09NUFJFUExZPSggJChjb21wZ2VuIC1XICIke2RldmljZXN9IiAtLSAke2N1cn0pICkKICAgICAgICAgICAgOzsKICAgICAgICBDT01NQU5EKQogICAgICAgICAgICBpZiBbWyAkaSAtZXEgJENPTVBfQ1dPUkQgXV07IHRoZW4KICAgICAgICAgICAgICAgIENPTVBSRVBMWT0oICQoY29tcGdlbiAtVyAiJENPTU1BTkQiIC0tICIkY3VyIikgKQogICAgICAgICAgICBlbHNlCiAgICAgICAgICAgICAgICBpPSQoKGkrMSkpCiAgICAgICAgICAgICAgICBjYXNlICIke2N1cn0iIGluCiAgICAgICAgICAgICAgICAgICAgaW5zdGFsbCkKICAgICAgICAgICAgICAgICAgICAgICAgX2FkYl9jbWRfaW5zdGFsbCAiJHNlcmlhbCIgJGkKICAgICAgICAgICAgICAgICAgICAgICAgOzsKICAgICAgICAgICAgICAgICAgICBzaWRlbG9hZCkKICAgICAgICAgICAgICAgICAgICAgICAgX2FkYl9jbWRfc2lkZWxvYWQgIiRzZXJpYWwiICRpCiAgICAgICAgICAgICAgICAgICAgICAgIDs7CiAgICAgICAgICAgICAgICAgICAgcHVsbCkKICAgICAgICAgICAgICAgICAgICAgICAgX2FkYl9jbWRfcHVsbCAiJHNlcmlhbCIgJGkKICAgICAgICAgICAgICAgICAgICAgICAgOzsKICAgICAgICAgICAgICAgICAgICBwdXNoKQogICAgICAgICAgICAgICAgICAgICAgICBfYWRiX2NtZF9wdXNoICIkc2VyaWFsIiAkaQogICAgICAgICAgICAgICAgICAgICAgICA7OwogICAgICAgICAgICAgICAgICAgIHJlYm9vdCkKICAgICAgICAgICAgICAgICAgICAgICAgaWYgW1sgJENPTVBfQ1dPUkQgPT0gJGkgXV07IHRoZW4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFyZ3M9ImJvb3Rsb2FkZXIgcmVjb3ZlcnkiCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBDT01QUkVQTFk9KCAkKGNvbXBnZW4gLVcgIiR7YXJnc30iIC0tICIke0NPTVBfV09SRFNbaV19IikgKQogICAgICAgICAgICAgICAgICAgICAgICBmaQogICAgICAgICAgICAgICAgICAgICAgICA7OwogICAgICAgICAgICAgICAgICAgIHNoZWxsKQogICAgICAgICAgICAgICAgICAgICAgICBfYWRiX2NtZF9zaGVsbCAiJHNlcmlhbCIgJGkKICAgICAgICAgICAgICAgICAgICAgICAgOzsKICAgICAgICAgICAgICAgICAgICB1bmluc3RhbGwpCiAgICAgICAgICAgICAgICAgICAgICAgIF9hZGJfY21kX3VuaW5zdGFsbCAiJHNlcmlhbCIgJGkKICAgICAgICAgICAgICAgICAgICAgICAgOzsKICAgICAgICAgICAgICAgIGVzYWMKICAgICAgICAgICAgZmkKICAgICAgICAgICAgOzsKICAgIGVzYWMKCiAgICByZXR1cm4gMAp9CgpfYWRiX2NtZF9pbnN0YWxsKCkgewogICAgbG9jYWwgc2VyaWFsIGkgY3VyIHdoZXJlCgogICAgc2VyaWFsPSQxCiAgICBpPSQyCgogICAgd2hlcmU9T1BUSU9OUwogICAgZm9yICgoOyBpIDw9IENPTVBfQ1dPUkQ7IGkrKykpOyBkbwogICAgICAgIGN1cj0iJHtDT01QX1dPUkRTW2ldfSIKICAgICAgICBjYXNlICIke2N1cn0iIGluCiAgICAgICAgICAgIC0qKQogICAgICAgICAgICAgICAgd2hlcmU9T1BUSU9OUwogICAgICAgICAgICAgICAgOzsKICAgICAgICAgICAgKikKICAgICAgICAgICAgICAgIHdoZXJlPUZJTEUKICAgICAgICAgICAgICAgIGJyZWFrCiAgICAgICAgICAgICAgICA7OwogICAgICAgIGVzYWMKICAgIGRvbmUKCiAgICBjdXI9IiR7Q09NUF9XT1JEU1tDT01QX0NXT1JEXX0iCiAgICBpZiBbWyAkd2hlcmUgPT0gT1BUSU9OUyBdXTsgdGhlbgogICAgICAgIENPTVBSRVBMWT0oICQoY29tcGdlbiAtVyAiLWQgLWwgLXIgLXMiIC0tICIke2N1cn0iKSApCiAgICAgICAgcmV0dXJuCiAgICBmaQoKICAgIF9hZGJfdXRpbF9jb21wbGV0ZV9sb2NhbF9maWxlICIke2N1cn0iICchKi5hcGsnCn0KCl9hZGJfY21kX3NpZGVsb2FkKCkgewogICAgbG9jYWwgc2VyaWFsIGkgY3VyCgogICAgc2VyaWFsPSQxCiAgICBpPSQyCgogICAgY3VyPSIke0NPTVBfV09SRFNbQ09NUF9DV09SRF19IgoKICAgIF9hZGJfdXRpbF9jb21wbGV0ZV9sb2NhbF9maWxlICIke2N1cn0iICchKi56aXAnCn0KCl9hZGJfY21kX3B1c2goKSB7CiAgICBsb2NhbCBzZXJpYWwgSUZTPSQnXG4nIGkgY3VyCgogICAgc2VyaWFsPSQ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yB0aGVuCiAgICAgICAgYXJncz0oLXMgJHNlcmlhbCkKICAgIGZpCgogICAgaWYgW1sgJGkgLWVxICRDT01QX0NXT1JEICYmICR7Y3VyOjA6MX0gIT0gIi8iIF1dOyB0aGVuCiAgICAgICAgcGF0aHM9JChjb21tYW5kIGFkYiAke2FyZ3NbQF19IHNoZWxsIGVjaG8gJyQnUEFUSCAyPiAvZGV2L251bGwgfCB0ciAtZCAnXHInIHwgdHIgOiAnXG4nKQogICAgICAgIENPTU1BTkQ9JChjb21tYW5kIGFkYiAke2FyZ3NbQF19IHNoZWxsIGxzICRwYXRocyAnMj4nIC9kZXYvbnVsbCB8IHRyIC1kICdccicgfCB7CiAgICAgICAgICAgIHdoaWxlIHJlYWQgLXIgdG1wOyBkbwogICAgICAgICAgICAgICAgY29tbWFuZD0ke3RtcCMjKi99CiAgICAgICAgICAgICAgICBwcmludGYgJyVzXG4nICIkY29tbWFuZCIKICAgICAgICAgICAgZG9uZQogICAgICAgIH0pCiAgICAgICAgQ09NUFJFUExZPSggJChjb21wZ2VuIC1XICIkQ09NTUFORCIgLS0gIiRjdXIiKSApCiAgICAgICAgcmV0dXJuIDAKICAgIGZpCgogICAgaT0kKChpKzEpKQogICAgY2FzZSAiJGN1ciIgaW4KICAgICAgICBscykKICAgICAgICAgICAgX2FkYl9zaGVsbF9maWxlX2NvbW1hbmQgJHNlcmlhbCAkaSAiLS1jb2xvciAtQSAtQyAtRiAtSCAtTCAtUiAtUyAtWiAtYSAtYyAtZCAtZiAtaCAtaSAtayAtbCAtbSAtbiAtcCAtcSAtciAtcyAtdCAtdSAteCAtMSIKICAgICAgICAgICAgOzsKICAgICAgICBjYXQpCiAgICAgICAgICAgIF9hZGJfc2hlbGxfZmlsZV9jb21tYW5kICRzZXJpYWwgJGkgIi1oIC1lIC10IC11IC12IgogICAgICAgICAgICA7OwogICAgICAgIGR1bXBzeXMpCiAgICAgICAgICAgIF9hZGJfY21kX3NoZWxsX2R1bXBzeXMgIiRzZXJpYWwiICRpCiAgICAgICAgICAgIDs7CiAgICAgICAgYW0pCiAgICAgICAgICAgIF9hZGJfY21kX3NoZWxsX2FtICIkc2VyaWFsIiAkaQogICAgICAgICAgICA7OwogICAgICAgIHBtKQogICAgICAgICAgICBfYWRiX2NtZF9zaGVsbF9wbSAiJHNlcmlhbCIgJGkKICAgICAgICAgICAgOzsKICAgICAgICAvKikKICAgICAgICAgICAgX2FkYl91dGlsX2xpc3RfZmlsZXMgJHNlcmlhbCAiJGN1ciIKICAgICAgICAgICAgOzsKICAgICAgICAqKQogICAgICAgICAgICBDT01QUkVQTFk9KCApCiAgICAgICAgICAgIDs7CiAgICBlc2FjCgogICAgcmV0dXJuIDAKfQoKX2FkYl9jbWRfc2hlbGxfZHVtcHN5cygpIHsKICAgIGxvY2FsIHNlcmlhbCBpIGN1cgogICAgbG9jYWwgLWEgYXJncwogICAgbG9jYWwgY2FuZGlkYXRlcwoKICAgIHVuc2V0IElGUwoKICAgIHNlcmlhbD0kMQogICAgaT0kMgoKICAgIGlmIFsgIiRzZXJpYWwiICE9ICJub25lIiBdOyB0aGVuCiAgICAgICAgYXJncz0oLXMgJHNlcmlhbCkKICAgIGZpCgogICAgaWYgKCggJGkgPT0gJENPTVBfQ1dPUkQgKSkgOyB0aGVuCiAgICAgICAgY3VyPSIke0NPTVBfV09SRFNbQ09NUF9DV09SRF19IgogICAgICAgICMgRmlyc3QgbGluZSBpcyBhIGhlYWRlciwgc28gbmVlZCAiMWQiLgogICAgICAgIGNhbmRpZGF0ZXM9JChjb21tYW5kIGFkYiAke2FyZ3NbQF19IHNoZWxsIGR1bXBzeXMgLWwgMj4gL2Rldi9udWxsIHwgc2VkIC1lICcxZDtzL14gICovLycgfCB0ciAtZCAnXHInKQogICAgICAgIGNhbmRpZGF0ZXM9Ii1sICRjYW5kaWRhdGVzIgogICAgICAgIENPTVBSRVBMWT0oICQoY29tcGdlbiAtVyAiJGNhbmRpZGF0ZXMiIC0tICIkY3VyIikgKQogICAgICAgIH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SRVBMWT0oICQoY29tcGdlbiAtVyAiJGNhbmRpZGF0ZXMiIC0tICIkY3VyIikgKQogICAgICAgIHJldHVybiAwCiAgICBmaQoKICAgIGlmICgoICRpICsgMSA9PSAkQ09NUF9DV09SRCApKSAmJiBbWyAiJHtDT01QX1dPUkRTW0NPTVBfQ1dPUkQgLTFdfSIgPT0gImxpc3QiIF1dICA7IHRoZW4KICAgICAgICBjdXI9IiR7Q09NUF9XT1JEU1tDT01QX0NXT1JEXX0iCiAgICAgICAgY2FuZGlkYXRlcz0icGFja2FnZXMgcGVybWlzc2lvbi1ncm91cHMgcGVybWlzc2lvbnMgaW5zdHJ1bWVudGF0aW9uIGZlYXR1cmVzIGxpYnJhcmllcyB1c2VycyIKICAgICAgICBDT01QUkVQTFk9KCAkKGNvbXBnZW4gLVcgIiRjYW5kaWRhdGVzIiAtLSAiJGN1ciIpICkKICAgICAgICByZXR1cm4gMAogICAgZmkKCiAgICBDT01QUkVQTFk9KCApCiAgICByZXR1cm4gMAp9CgpfYWRiX2NtZF91bmluc3RhbGwoKSB7CiAgICBsb2NhbCBzZXJpYWwgaSB3aGVyZSBjdXIgcGFja2FnZXMKCiAgICBzZXJpYWw9JDEKICAgIGk9JDIKICAgIGlmIFsgIiRzZXJpYWwiICE9ICJub25lIiBdOyB0aGVuCiAgICAgICAgYXJncz0oLXMgJHNlcmlhbCkKICAgIGZpCgogICAgd2hlcmU9T1BUSU9OUwogICAgZm9yICgoOyBpIDw9IENPTVBfQ1dPUkQ7IGkrKykpOyBkbwogICAgICAgIGN1cj0iJHtDT01QX1dPUkRTW2ldfSIKICAgICAgICBjYXNlICIke2N1cn0iIGluCiAgICAgICAgICAgIC0qKQogICAgICAgICAgICAgICAgd2hlcmU9T1BUSU9OUwogICAgICAgICAgICAgICAgOzsKICAgICAgICAgICAgKikKICAgICAgICAgICAgICAgIHdoZXJlPUZJTEUKICAgICAgICAgICAgICAgIGJyZWFrCiAgICAgICAgICAgICAgICA7OwogICAgICAgIGVz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ElPTlMKICAgICAgICAgICAgICAgIDs7CiAgICAgICAgICAgICopCiAgICAgICAgICAgICAgICB3aGVyZT1GSUxFCiAgICAgICAgICAgICAgICBicmVhawogICAgICAgICAgICAgICAgOzsKICAgICAgICBlc2FjCiAgICBkb25lCgogICAgZmlsZT0iJHtDT01QX1dPUkRTW0NPTVBfQ1dPUkRdfSIKICAgIGlmIFtbICR7ZmlsZX0gPT0gIiIgXV07IHRoZW4KICAgICAgICBmaWxlPSIvIgogICAgZmkKCiAgICBjYXNlICR3aGVyZSBpbgogICAgICAgIE9QVElPTlMpCiAgICAgICAgICAgIHVuc2V0IElGUwogICAgICAgICAgICBDT01QUkVQTFk9KCAkKGNvbXBnZW4gLVcgIiRvcHRpb25zIiAtLSAiJGN1ciIpICkKICAgICAgICAgICAgOzsKICAgICAgICBGSUxFKQogICAgICAgICAgICBfYWRiX3V0aWxfbGlzdF9maWxlcyAkc2VyaWFsICIkZmlsZSIKICAgICAgICAgICAgOzsKICAgIGVzYWMKCiAgICByZXR1cm4gMAp9CgpfYWRiX3V0aWxfbGlzdF9maWxlcygpIHsKICAgIGxvY2FsIHNlcmlhbCBkaXIgSUZTPSQnXG4nCiAgICBsb2NhbCAtYSB0b2tzCiAgICBsb2NhbCAtYSBhcmdzCgogICAgc2VyaWFsPSIkMSIKICAgIGZpbGU9IiQyIgoKICAgIGlmIFsgIiRzZXJpYWwiICE9ICJub25lIiBdOyB0aGVuCiAgICAgICAgYXJncz0oLXMgJHNlcmlhbCkKICAgIGZpCgogICAgaWYgW1sgJCggY29tbWFuZCBhZGIgJHthcmdzW0BdfSBzaGVsbCBscyAtZEYgLyAnMj4vZGV2L251bGwnIHwgdHIgLWQgJ1xyJyApID09ICJkIC8iIF1dIDsgdGhlbgogICAgICAgIHRva3M9KCAke3Rva3NbQF0tfSAkKAogICAgICAgICAgICBjb21tYW5kIGFkYiAke2FyZ3NbQF19IHNoZWxsIGxzIC1kRiAke2ZpbGV9IioiICcyPicgL2Rldi9udWxsIDI+IC9kZXYvbnVsbCB8IHRyIC1kICdccicgfCB7CiAgICAgICAgICAgICAgICB3aGlsZSByZWFkIC1yIHRtcDsgZG8KICAgICAgICAgICAgICAgICAgICBmaWxldHlwZT0ke3RtcCUlICp9CiAgICAgICAgICAgICAgICAgICAgZmlsZW5hbWU9JHt0bXA6JHsjZmlsZXR5cGV9KzF9CiAgICAgICAgICAgICAgICAgICAgaWYgW1sgJHtmaWxldHlwZTokeyNmaWxldHlwZX0tMToxfSA9PSBkIF1dOyB0aGVuCiAgICAgICAgICAgICAgICAgICAgICAgIHByaW50ZiAnJXMvXG4nICIkZmlsZW5hbWUiCiAgICAgICAgICAgICAgICAgICAgZWxzZQogICAgICAgICAgICAgICAgICAgICAgICBwcmludGYgJyVzXG4nICIkZmlsZW5hbWUiCiAgICAgICAgICAgICAgICAgICAgZmkKICAgICAgICAgICAgICAgIGRvbmUKICAgICAgICAgICAgfQogICAgICAgICkpCiAgICBlbHNlCiAgICAgICAgdG9rcz0oICR7dG9rc1tAXS19ICQoCiAgICAgICAgICAgIGNvbW1hbmQgYWRiICR7YXJnc1tAXX0gc2hlbGwgbHMgLWRwICR7ZmlsZX0iKiIgJzI+L2Rldi9udWxsJyAyPiAvZGV2L251bGwgfCB0ciAtZCAnXHInCiAgICAgICAgKSkKICAgIGZpCgogICAgIyBTaW5jZSB3ZSdyZSBwcm9iYWJseSBkb2luZyBmaWxlIGNvbXBsZXRpb24gaGVyZSwgZG9uJ3QgYWRkIGEgc3BhY2UgYWZ0ZXIuCiAgICBpZiBbWyAkKGNoZWNrX3R5cGUgY29tcG9wdCkgPT0gImJ1aWx0aW4iIF1dOyB0aGVuCiAgICAgICAgY29tcG9wdCAtbyBub3NwYWNlCiAgICBmaQoKICAgIENPTVBSRVBMWT0oICR7Q09NUFJFUExZW0BdOi19ICIke3Rva3NbQF19IiApCn0KCl9hZGJfdXRpbF9jb21wbGV0ZV9sb2NhbF9maWxlKCkKewogICAgbG9jYWwgZmlsZSB4c3BlY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tmaWxlc1tAXX0iOyBkbwogICAgICAgICAgICAgICAgbG9jYWwgc2tpcD0KICAgICAgICAgICAgICAgIGZvciBqIGluICIke2RpcnNbQF19IjsgZG8KICAgICAgICAgICAgICAgICAgICBpZiBbWyAkaSA9PSAkaiBdXTsgdGhlbgogICAgICAgICAgICAgICAgICAgICAgICBza2lwPTEKICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWsKICAgICAgICAgICAgICAgICAgICBmaQogICAgICAgICAgICAgICAgZG9uZQogICAgICAgICAgICAgICAgW1sgLW4gJHNraXAgXV0gfHwgcHJpbnRmICIlc1xuIiAiJGkiCiAgICAgICAgICAgIGRvbmUKICAgICAgICApKQoKICAgICAgICBDT01QUkVQTFk9KCAke0NPTVBSRVBMWVtAXTotfSAkKAogICAgICAgICAgICBmb3IgaSBpbiAiJHtkaXJzW0BdfSI7IGRvCiAgICAgICAgICAgICAgICBwcmludGYgIiVzL1xuIiAiJGkiCiAgICAgICAgICAgIGRvbmUKICAgICAgICApKQogICAgZmkKfQoKCmlmIFtbICQoY2hlY2tfdHlwZSBjb21wb3B0KSA9PSAiYnVpbHRpbiIgXV07IHRoZW4KICAgIGNvbXBsZXRlIC1GIF9hZGIgYWRiCmVsc2UKICAgIGNvbXBsZXRlIC1vIG5vc3BhY2UgLUYgX2FkYiBhZGIKZmkK
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor