It looks like the `-component` flag was added in 0.5.0 and the behaviour in 0.4.1 causes it to error (not create the repo) but doesn't return the right exit code to let Puppet know. So it tries to apply the resource each time:
```
root@apt-1:~# /usr/bin/aptly repo create custom -component="custom"
Usage: /usr/bin/aptly repo create <name>

/usr/bin/aptly repo create - create local repository


Options:
  -comment="": any text that would be used to described local repository
root@apt-1:~# echo $?
0
```

We can upgrade before using this feature, but I wonder if we can make the behaviour a bit more user-friendly for other people?