| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
This enables to reuse the manifest parsing code other python
scripts.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
|
|
|
|
|
|
|
|
| |
This change was also tested and it works fine:
$ ./generate-mirror-commands.py ../default.xml;echo $?
[the generated shell script being printed]
0
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
drm-hwcomposer/drm-hwcomposer is supposed to be skipped as
we have the following code:
def is_revision_blacklisted(self, elm):
[...]
if revision == 'master':
return True
[...]
elif remote == 'freedesktop':
return True
return False
But instead, when running the following command:
generate-mirror-commands.py ../default.xml'
we have a crash (the file paths were shortened in the crash
below):
# drm-hwcomposer/drm-hwcomposer
Traceback (most recent call last):
File "generate-mirror-commands.py", line 201, in <module>
manifest.parse()
File "generate-mirror-commands.py", line 187, in parse
for command in self.get_clone_commands(child):
File "generate-mirror-commands.py", line 145, in get_clone_commands
base_directory = self.get_base_directory(remote)
File "generate-mirror-commands.py", line 109, in get_base_directory
assert(given_remote.get('name') in whitelist)
AssertionError
This is because generate-mirror-commands tries to lookup the mirror
directory (dirname) before checking if the repository needs to be
skipped.
And when we don't want to mirror a given repository (for instance
because it uses the mater branch), we will want to skip it (at least
for now) but we might not have any directory in which we want to
store the mirror.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
repository
It generated an entry like that:
# drm-hwcomposer/drm-hwcomposer
if [ ! -d mirrors/freesmartphone.org/drm-hwcomposer_drm-hwcomposer.git ] ; then
git clone --mirror https://gitlab.freedesktop.org/drm-hwcomposer/drm-hwcomposer mirrors/freesmartphone.org/drm-hwcomposer_drm-hwcomposer.git
else
git -C mirrors/freesmartphone.org/drm-hwcomposer_drm-hwcomposer.git fetch https://gitlab.freedesktop.org/drm-hwcomposer/drm-hwcomposer 32819fe45972e0c706423d71075788a5885f7b86
touch mirrors/freesmartphone.org/drm-hwcomposer_drm-hwcomposer.git/git-daemon-export-ok
fi
Many things are wrong here, not just the typo of
freesmartphone.org instead of freedesktop.org.
The directory name is completely wrong, the repository name
is wrong too, etc.
Probably Only the URL of the git repository is right here.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
|
|
|
|
|
|
|
|
| |
We could accidentally update the branches used in Replicant 6 when
trying to mirror the code meant for the next Replicant version.
So we whitelist revisions to avoid accidentally doing that.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
|
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|